1.1.6 • Published 2 years ago
anilist-scheduler v1.1.6
Anilist Scheduler
Unofficial API for upcoming anime airings. Anilist.co
- This package use chalk and node-fetch.
- Utilizes the Anilist API.
- Npm Package : https://www.npmjs.com/package/anilist-scheduler
📁 Installation
npm i anilist-scheduler@latest
🚦 Initializing the Scheduler
const Scheduler = require("anilist-scheduler");
const scheduler = new Scheduler({
log: true, // Get log. (Animes upcoming list & errors)
days: 1, // Retrieve upcoming airing for the next x days. (default: 1)
});
scheduler.init(); // Important to launch the scheduler !
Event
The 'airing' event allows you to receive recently aired anime shows.
const { default: Scheduler } = require("anilist-sheduler");
scheduler.on(Scheduler.AIRING, (animes) => {
console.log(animes);
});
Upcoming airing
You can access the list of upcoming airings.
const upcomingAiring = scheduler.airingList;
console.log(upcomingAiring);
☎️ Contact
Discord : Zeleff_