Skip to content
A wrapper for the jikan REST API.
Branch: master
Clone or download
Latest commit 3f0a309 May 17, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github 📝 Add pull request template Apr 21, 2019
logo Add files via upload Apr 27, 2019
src Give some methods defaults values May 2, 2019
.editorconfig 🎉 Initial Commit Apr 17, 2019
.gitignore 🎉 Initial Commit Apr 17, 2019
.npmignore Configure package.json and tsconfig for npm publish Apr 21, 2019
CODE_OF_CONDUCT.md 📝 Add code of conduct Apr 21, 2019
LICENSE 🎉 Initial Commit Apr 17, 2019
README.md Update README.md Apr 27, 2019
contributing.md 🎉 Initial Commit Apr 17, 2019
package.json v1.2.3 May 17, 2019
tsconfig.json Give some methods defaults values May 2, 2019
tslint.json 🎉 Initial Commit Apr 17, 2019
yarn.lock

README.md

jikants

Discord ServernpmNetlify StatusTotal alertsLanguage grade: JavaScript

A wrapper for the jikan REST API.

Table of Contents

Todo

TODO : Improve interfaces

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

You can’t perform that action at this time.