jikants
A wrapper for the jikan REST API.
Last updated 2 days ago by world_wrecker .
MPL-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install jikants 
SYNC missed versions from official npm registry.

jikants

Discord ServernpmNetlify StatusTotal alertsLanguage grade: JavaScript

A wrapper for the jikan REST API.

Table of Contents

Todo

TODO : Improve interfaces TODO : Add Throttling

Install

$ npm install jikants
$ yarn add jikants

Usage

const JikanTS = require("jikants").default;

/* WITH ES6 */

import JikanTS from "jikants";

API

const JikanTS = require("jikants").default;

/* ANIME */
JikanTS.Anime.byId(1).then(b => console.log(b));
JikanTS.Anime.charactersStaff(1).then(b => console.log(b));
JikanTS.Anime.episodes(1).then(b => console.log(b));
JikanTS.Anime.forum(1).then(b => console.log(b));
JikanTS.Anime.moreInfo(1).then(b => console.log(b));
JikanTS.Anime.news(1).then(b => console.log(b));
JikanTS.Anime.pictures(1).then(b => console.log(b));
JikanTS.Anime.recommendations(1).then(b => console.log(b));
JikanTS.Anime.reviews(1).then(b => console.log(b));
JikanTS.Anime.stats(1).then(b => console.log(b));
JikanTS.Anime.userUpdates(1).then(b => console.log(b));
JikanTS.Anime.videos(1).then(b => console.log(b));

/* CHARACTER */
JikanTS.Character.pictures(1).then(b => console.log(b));

/* CLUB */
JikanTS.Club.info(1).then(b => console.log(b));
JikanTS.Club.members(1).then(b => console.log(b));

/* GENRE */
JikanTS.Genre.anime(1).then(b => console.log(b));
JikanTS.Genre.manga(1).then(b => console.log(b));

/* MAGAZINE */
JikanTS.Magazine.get(1).then(b => console.log(b));

/* MANGA */
JikanTS.Manga.characters(1).then(b => console.log(b));
JikanTS.Manga.forum(1).then(b => console.log(b));
JikanTS.Manga.moreInfo(1).then(b => console.log(b));
JikanTS.Manga.news(1).then(b => console.log(b));
JikanTS.Manga.pictures(1).then(b => console.log(b));
JikanTS.Manga.recommendations(1).then(b => console.log(b));
JikanTS.Manga.reviews(1).then(b => console.log(b));
JikanTS.Manga.stats(1).then(b => console.log(b));
JikanTS.Manga.userUpdates(1).then(b => console.log(b));

/* META */
JikanTS.Meta.requests("anime", "today").then(b => console.log(b));
JikanTS.Meta.status().then(b => console.log(b));

/* PERSON */
JikanTS.Person.pictures(1).then(b => console.log(b));

/* PRODUCER */
JikanTS.Producer.get(1).then(b => console.log(b));

/* SCHEDULE */
JikanTS.Schedule.anime("sunday").then(b => console.log(b));

/* SEARCH */
JikanTS.Search.search("Blue", "anime", 1, { limit: 1 }).then(b =>
  console.log(b)
);

/* SEASON */
JikanTS.Season.anime(2018, "winter").then(b => console.log(b));
JikanTS.Season.archive().then(b => console.log(b));
JikanTS.Season.later().then(b => console.log(b));

/* TOP */
JikanTS.Top.items("anime", 1, "airing").then(b => console.log(b));

/* USER */
JikanTS.User.animeList("myusername", "all", 1).then(b => console.log(b));
JikanTS.User.friends("myusername", 2).then(b => console.log(b));
JikanTS.User.history("myusername", "both").then(b => console.log(b));
JikanTS.User.mangaList("myusername", "all").then(b => console.log(b));
JikanTS.User.profile("myusername").then(b => console.log(b));

Maintainers

@Julien-Broyard

Logo by @Tobaloidee

Contributing

See the contributing file!

PRs accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

MPL-2.0 © 2019 Julien Broyard

Current Tags

  • 1.2.13                                ...           latest (2 days ago)

24 Versions

  • 1.2.13                                ...           2 days ago
  • 1.2.11                                ...           2 months ago
  • 1.2.10                                ...           2 months ago
  • 1.2.9                                ...           3 months ago
  • 1.2.8                                ...           3 months ago
  • 1.2.7                                ...           3 months ago
  • 1.2.6                                ...           3 months ago
  • 1.2.5                                ...           4 months ago
  • 1.2.4                                ...           4 months ago
  • 1.2.3                                ...           4 months ago
  • 1.2.2                                ...           4 months ago
  • 1.2.1                                ...           4 months ago
  • 1.2.0                                ...           4 months ago
  • 1.1.2                                ...           5 months ago
  • 1.1.1                                ...           5 months ago
  • 1.1.0                                ...           5 months ago
  • 1.0.7                                ...           5 months ago
  • 1.0.6                                ...           5 months ago
  • 1.0.5                                ...           5 months ago
  • 1.0.4                                ...           5 months ago
  • 1.0.3                                ...           5 months ago
  • 1.0.2                                ...           5 months ago
  • 1.0.1                                ...           5 months ago
  • 1.0.0                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 18
This Month 19
Last Day 2
Last Week 1
Last Month 27
Dependencies (8)
Dev Dependencies (7)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |