Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

kuristina

1.0.0 • Public • Published

kuristina-node

Node.js wrapper for Kuristina API.

Installation

npm install --save kuristina

Example usage

const kuristina = require('kuristina');
 
kuristina.fetchAnimeList('Timbo_KZ')
    .then(animeList => {
        let count = animeList.anime.length;
        console.log(`${animeList.myinfo.user_name}'s anime (${count} title(s)):`);
        for (let i = 0; i < count; i++) {
            let anime = animeList.anime[i];
            console.log(`${anime.series_title} [Rated ${anime.my_score}/10]`);
        }
    })
    .catch(error => console.error(error));
 
kuristina.fetchMangaList('Timbo_KZ')
    .then(mangaList => {
        let count = mangaList.manga.length;
        console.log(`${mangaList.myinfo.user_name}'s manga (${count} title(s)):`);
        for (let i = 0; i < count; i++) {
            let manga = mangaList.manga[i];
            console.log(`${manga.series_title} [Rated ${manga.my_score}/10]`);
        }
    })
    .catch(error => console.error(error));

See Kuristina API for details and kuristina.d.ts for typings.

Contributing

I consider the project to be feature complete. If you add something, extend kuristina.spec.js and run npm test.

install

npm i kuristina

Downloadsweekly downloads

1

version

1.0.0

license

GPL-3.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability