2.0.0 • Published 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)
Parameter | Type | Optional | Default | Description |
---|
anime | string | | none | The anime you want to search |
offset | number | X | 0 | Offset for pagination |
kitsu.searchManga(manga, offset)
Parameter | Type | Optional | Default | Description |
---|
manga | string | | none | The manga you want to search |
offset | number | X | 0 | Offset for pagination |
kitsu.getAnime(animeID)
Parameter | Type | Optional | Default | Description |
---|
animeID | string | | none | The anime you want to search |
kitsu.getManga(mangaID)
Parameter | Type | Optional | Default | Description |
---|
mangaID | string | | none | The manga you want to search |
kitsu.getUsers(userID)
Parameter | Type | Optional | Default | Description |
---|
userID | string | | none | The user you want to search |
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
kitsu.js © iCrawl, Released under the MIT License.
Authored and maintained by iCrawl.
GitHub @iCrawl · Twitter @iCrawlToGo