kitsu-node-js
v1.0.2
Published
A simple node.js wrapper for the KitsuAPI.
Downloads
12
Readme
Kitsu Node.js
A simple node.js wrapper for Kitsu.
Installation
npm install kitsu-node-js --save
Testing
npm test
Usage
const KitsuAPI = require('kitsu-node-js');
const kitsu = new KitsuAPI(debug = false);
// When searching by id, no filter is required.
kitsu.getManga(1)
.then(manga => {
console.log(manga.attributes);
}, err => {
console.log(err);
});
// Text filter, is default.
kitsu.getAnime("Mob Psycho 100", filter = "text")
.then(anime => {
anime.forEach(anime => {
console.log(anime.attributes);
});
}, err => {
console.log(err);
});
Release History
v1.0.1 (11/01/2019)
Added the ability to get manga, the same way as anime.
When using
kitsu.getAnime(identifier)
, you can now specify a filter.
v1.0.0 (10/01/2019)
- Initial Release