2.0.0 • Published 7 years ago

kitsu.js v2.0.0

Weekly downloads
1,125
License
MIT
Repository
github
Last release
7 years ago

kitsu.js

A NodeJS wrapper for interacting with the kitsu.io API.

Features

  • Currently supports only GET requests for Anime, Manga, and Users
    • Anime with search/ID, Manga with search/ID, and Users with ID only

Install

npm install --save kitsu.js

Usage

Normal usage:

const Kitsu = require('kitsu.js');
const kitsu = new Kitsu();

kitsu.searchAnime('One Piece')
	.then(result => console.log(result))
	.catch(err => console.error(err));

Docs

kitsu.searchAnime(anime, offset)

ParameterTypeOptionalDefaultDescription
animestringnoneThe anime you want to search
offsetnumberX0Offset for pagination

kitsu.searchManga(manga, offset)

ParameterTypeOptionalDefaultDescription
mangastringnoneThe manga you want to search
offsetnumberX0Offset for pagination

kitsu.getAnime(animeID)

ParameterTypeOptionalDefaultDescription
animeIDstringnoneThe anime you want to search

kitsu.getManga(mangaID)

ParameterTypeOptionalDefaultDescription
mangaIDstringnoneThe manga you want to search

kitsu.getUsers(userID)

ParameterTypeOptionalDefaultDescription
userIDstringnoneThe user you want to search

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

kitsu.js © iCrawl, Released under the MIT License. Authored and maintained by iCrawl.

GitHub @iCrawl · Twitter @iCrawlToGo