Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

kitsu-node-js

1.0.2 • Public • Published

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

Install

npm i kitsu-node-js

DownloadsWeekly Downloads

4

Version

1.0.2

License

ISC

Unpacked Size

7.07 kB

Total Files

5

Last publish

Collaborators

  • avatar