Shikimori.ts - JavaScript & TypeScript wrapper for shikimori.one

Overview

shikimori.ts

shikimori.ts - JavaScript & TypeScript wrapper for shikimori.one

npm version

Features

  • Full TypeScript support
  • Support all platforms
  • Easy to use

Table of Contents

Quick start

Install

npm

npm i shikimori.ts

yarn

yarn add shikimori.ts

Initialization

JavaScript

const { Shikimori } = require('shikimori.ts');

TypeScript

import { Shikimori } from 'shikimori.ts';

Methods

getUser

Returns the user object.

Options

  • id
    • Type: String
    • Description: Shikimori user ID.
  • name
    • Type: String
    • Description: Shikimori username.

Returns

  • Promise

    Example

    console.log(user)); // => { // id: 823641, // nickname: "simplname", // avatar: "https://...", // ... // }">
    Shikimori.getUser({ id: '823641' }).then(user => console.log(user));
    // => {
    //     id: 823641,
    //     nickname: "simplname",
    //     avatar: "https://...",
    //     ...
    // }
    Shikimori.getUser({ name: 'simplname' }).then(user => console.log(user));
    // => {
    //     id: 823641,
    //     nickname: "simplname",
    //     avatar: "https://...",
    //     ...
    // }

    getAnime

    Returns the anime object.

    Options

    • id
      • Type: String
      • Description: Shikimori anime ID.
    • name
      • Type: String
      • Description: Shikimori anime name(you can also use Russian names).

    Returns

    • Promise

      Example

      console.log(anime)); // => { // id: 20, // name: "Naruto", // russian: "Наруто", // image: { ... }, // ... // }">
      Shikimori.getAnime({ id: '20' }).then(anime => console.log(anime));
      // => {
      //     id: 20,
      //     name: "Naruto",
      //     russian: "Наруто",
      //     image: { ... },
      //     ...
      // }
      Shikimori.getAnime({ name: 'Naruto' }).then(anime => console.log(anime));
      // => {
      //     id: 20,
      //     name: "Naruto",
      //     russian: "Наруто",
      //     image: { ... },
      //     ...
      // }

      getManga

      Returns the manga object.

      Options

      • id
        • Type: String
        • Description: Shikimori manga ID.
      • name
        • Type: String
        • Description: Shikimori manga name(you can also use Russian names).

      Returns

      • Promise

        Example

        console.log(manga)); // => { // id: 33327, // name: "Tokyo Ghoul", // russian: "Токийский гуль", // image: { ... }, // ... // }">
        Shikimori.getManga({ id: '33327' }).then(manga => console.log(manga));
        // => {
        //     id: 33327,
        //     name: "Tokyo Ghoul",
        //     russian: "Токийский гуль",
        //     image: { ... },
        //     ...
        // }
        Shikimori.getManga({ name: 'Tokyo Ghoul' }).then(manga => console.log(manga));
        // => {
        //     id: 33327,
        //     name: "Tokyo Ghoul",
        //     russian: "Токийский гуль",
        //     image: { ... },
        //     ...
        // }

        getRanobe

        Returns the ranobe object.

        Options

        • id
          • Type: String
          • Description: Shikimori ranobe ID.
        • name
          • Type: String
          • Description: Shikimori ranobe name(you can also use Russian names).

        Returns

        • Promise

          Example

          console.log(ranobe)); // => { // id: 70399, // name: "Seishun Buta Yarou Series", // russian: "Этот глупый свин", // image: { ... }, // ... // }">
          Shikimori.getRanobe({ id: '70399' }).then(ranobe => console.log(ranobe));
          // => {
          //     id: 70399,
          //     name: "Seishun Buta Yarou Series",
          //     russian: "Этот глупый свин",
          //     image: { ... },
          //     ...
          // }
          Shikimori.getRanobe({ name: 'Seishun Buta Yarou Series' }).then(ranobe => console.log(ranobe));
          // => {
          //     id: 70399,
          //     name: "Seishun Buta Yarou Series",
          //     russian: "Этот глупый свин",
          //     image: { ... },
          //     ...
          // }

          getCharacter

          Returns the character object.

          Options

          • id
            • Type: String
            • Description: Shikimori character ID.
          • name
            • Type: String
            • Description: Shikimori character name(you can also use Russian names).

          Returns

          • Promise

            Example

            console.log(character)); // => { // id: 17, // name: "Naruto Uzumaki", // russian: "Наруто Узумаки", // image: { ... }, // ... // }">
            Shikimori.getCharacter({ id: '17' }).then(character => console.log(character));
            // => {
            //     id: 17,
            //     name: "Naruto Uzumaki",
            //     russian: "Наруто Узумаки",
            //     image: { ... },
            //     ...
            // }
            Shikimori.getCharacter({ name: 'Naruto Uzumaki' }).then(character => console.log(character));
            // => {
            //     id: 17,
            //     name: "Naruto Uzumaki",
            //     russian: "Наруто Узумаки",
            //     image: { ... },
            //     ...
            // }

            getCalendar

            Returns the animes array.

            Returns

            • Promise

            Example

            Shikimori.getCalendar().then(calendar => console.log(calendar));
            // => [
            //   {
            //     next_episode: 1,
            //     next_episode_at: "2022-01-13T09:00:00.000+03:00",
            //     duration: 120,
            //     anime: { ... },
            //     ...
            //   },
            //   {
            //     next_episode: 1,
            //     next_episode_at: "2022-01-14T09:00:00.000+03:00",
            //     duration: null,
            //     anime: { ... },
            //     ...
            //   },
            //   ...
            // ]

            © Ja1z666

You might also like...

JavaScript Survey and Form Library

JavaScript Survey and Form Library

SurveyJS is a JavaScript Survey and Form Library. SurveyJS is a modern way to add surveys and forms to your website. It has versions for Angular, jQue

Jan 1, 2023

⚡️ A resource to help figure out what JavaScript array method would be best to use at any given time

JavaScript Array Explorer When I was first learning array methods, I spent a lot of time digging through the docs to find the appropriate one, and I h

Jan 2, 2023

🌳 Tiny & elegant JavaScript HTTP client based on the browser Fetch API

Huge thanks to for sponsoring me! Ky is a tiny and elegant HTTP client based on the browser Fetch API Ky targets modern browsers and Deno. For older b

Jan 2, 2023

Extensive math expression evaluator library for JavaScript and Node.js

Extensive math expression evaluator library for JavaScript and Node.js

🏠 Homepage Fcaljs is an extensive math expression evaluator library for JavaScript and Node.js. Using fcal, you can perform basic arithmetic, percent

Dec 19, 2022

Vanilla JavaScript emoji picker component

Vanilla JavaScript emoji picker component

Vanilla JavaScript emoji picker 😎 Screenshot Demo and Documentation https://emoji-button.js.org Features 💻 Vanilla JS, use with any framework 😀 Use

Dec 31, 2022

📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings

📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings

JavaScript Algorithms and Data Structures This repository contains JavaScript based examples of many popular algorithms and data structures. Each algo

Dec 31, 2022

This is my To-do-list project for my Javascript module at Microverse.

To do List This is a To do list project built for learning purposes. Built With HTML Bootstrap Javascript CSS HTML Webpack How to use it Clone the rep

Oct 8, 2021

A JavaScript, zero-dependency, super small version of IP2Location LITE country lookups.

A JavaScript, zero-dependency, super small version of IP2Location LITE country lookups.

Dec 14, 2022

An easy to use, yet advanced and fully customizable javascript/jQuery paginator plugin

An easy to use, yet advanced and fully customizable javascript/jQuery paginator plugin

anyPaginator An easy to use, yet advanced and fully customizable Javascript/jQuery paginator plugin. anyPaginator is a spinoff of the anyList project

Feb 17, 2022
Online Golang Struct to TypeScript Interface Converter

Golang Struct to TypeScript Interface Use this tool live! https://stirlingmarketinggroup.github.io/go2ts/ This tool converts Go structs to TypeScript

Stirling Marketing Group 42 Dec 17, 2022
TypeScript with a Borrow Checker. Multi-threaded, Tiny binaries. No GC. Easy to write.

TypeScript with a Borrow Checker. Multi-threaded, Tiny binaries. No GC. Easy to write.

David Alsh 1.4k Dec 19, 2022
Type-Safe Errors for JS & TypeScript

Type-Safe Errors for JS & TypeScript

Gio 1.4k Jan 6, 2023
A simple bot for Lingos exercises automation written entirely in Typescript.

Linger The spiritual successor to lingus Stack used Typescript SWC Yarn Nodejs Puppeteer Dotenv UUID Nodemon Instalation Prerequisites: Nodejs: ^16.13

TlenDev 2 May 9, 2022
An implementation of cellular automata in TypeScript

?? cellular-automata An implementation of cellular automata in TypeScript. ?? Usage First of all, clone the repository: $ git clone [email protected]:aro

Faye's Games 2 Feb 7, 2022
Typescript template for a discord bot using discord.js

Discord-Typescript-Template Typescript template for a discord bot using discord.js. Installation Clone the repository git clone https://github.com/Ami

null 2 Oct 17, 2022
ThinkMore Forum frontend build with Next.js, Typescript, Redux, Jest, Sass, MUI.

ThinkMoreForum-Frontend Website Desktop Mobile Front-end technology stack Next.js Redux Typescript MUI Axios Husky React testing-library Jest Eslint,

Alan 151 Dec 10, 2022
Max is a Typescript-based Discord bot with many functionalities

Max is a Typescript-based Discord bot with many functionalities. He is both my learning curve for understanding Discord's API as well as my current passion project.

Jack Levreau 4 May 24, 2022
An arbitrary size Bit-Vector implementation in JavaScript

BitSet.js BitSet.js is an infinite Bit-Array (aka bit vector, bit string, bit set) implementation in JavaScript. That means that if you invert a bit v

Robert Eisele 207 Dec 9, 2022
SPOILER ALERT! A happy little bit of javascript to hide spoilers on your site.

SPOILER ALERT! Don't spoil it! Hide copy and images with a bit of SVG blur. Taste on mouseover. Eat on click. Do you publish spoilers? Do you wish you

Joshua Hull 473 Sep 27, 2022