Wrapper for the unofficial MAL api, Jikan
npm install jikan-nodenpm install jikan-node --save
javascript
const Jikan = require('jikan-node');
const mal = new Jikan();
`
$3
The code below will find every Nisemonogatari (https://myanimelist.net/anime/11597/Nisemonogatari) episode on the first page, since there is only one page for episodes it will return that single page. The ids for shows are in the url and page number is optional.
`javascript
mal.findAnime('11597', 'episodes', 1)
.then(info => console.log(info))
.catch(err => console.log(err));
``