Skip to content

hsiW/kitsu-fetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kitsu-fetch

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-fetch --save

If using npm,

$ npm install kitsu-fetch --save

Examples

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

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

(async () => {
    let response;
    try {
        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.

About

A JavaScript library made for interfacing with the Kitsu API

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors