0.2.2 • Published 6 years ago

@meibe/kitsu-js v0.2.2

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

kitsu.js

A wrapper for the Kitsu API that is made to simplify things as well as provide consitent data.

Installation

If using yarn,

$ yarn add kitsu --save

If using npm,

$ npm install kitsu --save

Examples

Retrieve an array of Anime objects using the passed search term:

const kitsu = new (require('kitsu-js'));

(async () => {
    let response;

    try {
        let response = await kitsu.searchAnime('RWBY');
    } catch(e) {
        // Handle error with request

        console.log('Error getting anime data', e);
        return;
    }
    // Do something with the response

    console.log(response);
})();

License

This project is licensed under ISC.

0.2.2

6 years ago

0.2.1

6 years ago