Nifty Procrastination Machine

    kuristina
    TypeScript icon, indicating that this package has built-in type declarations

    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

    Last publish

    Collaborators

    • timbokz