anilia
v1.0.4
Published
Anilist GraphQL client
Downloads
2
Readme
ANILIA
Anilist GraphQL Client
Installation
npm install anilia
⬇ Import in your Project
// commonjs Method
const { AnilistClient } = require('anilia');
//es6 or later
import { AnilistClient } from 'anilia';
const Anilia = new AnilistClient();
👤 Get a user
(async()=>{
const { id } = await Anilia.getuser("kewlbee");
/* { users: [ { id: 5209602, name: 'kewlbee', avatar: [Object] } ] } */
console.log(id) //id of the user
const userData = await Anilia.getuserdetails(id)
// returns user data
// alternatively can use getUserdetailsByname using the username
})();
💫 Get Anime
await Anilia.searchAnime("jojo") // returns searched anime related data
🔆 Get Manga
await Anilia.searchManga("jojo") // returns searched anime related data
🧡 Get Character
await Anilia.findCharacter("subaru")
⏳ Get AiringTime
// provide anime id
await Anilia.getAiringTime(108556)
// airing time for spyXfamily
Note : Pass number whenever ID is mentioned