1.1.0 • Published 3 years ago

anilist-js v1.1.0

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

npm.io

Table of Contents


Projects Using anilist-js


Documentation


Types

  • anime
  • manga
  • character

get(type: String, id: Integer):

    AniList.get('anime', 21).then(media => {
        console.log(media);
        // logs a HUGE amount of info on One Piece
    });

    console.log(await AniList.get('character', 17));
    // logs information on Naruto Uzumaki

search(type: String, variables: {}):

    AniList.search('anime', { search: 'One Piece', perPage: 5, sort: 'SCORE', format: 'OVA' }).then(media => {
        console.log(media);
        // logs small bits of information on 3 most popular One Piece OVAs
    });

    console.log(await AniList.search('character', { search: 'Naruto', perPage: 3 }));
    // logs basic information on 3 most popular characters with a name containing 'Naruto'

view the variables on the API Reference

1.1.0

3 years ago

1.0.0

3 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.4

4 years ago

0.1.0

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago