Skip to content

getAnime

getAnime()

This function is used to get a specific anime from the JSON DB which will be supplied as it’s parameter.


Parameters

  • animeName

This parameter is to give the anime name to search for in DB


Usage

1st Method:

const { getAnime } = require('anichu.db');
( async () => {
const res = await getAnime('sword art online');
console.log(res);
})();

2nd Method:

const anidb = require('anichu.db');
( async () => {
const res = await anidb.anime.get('sword art online ');
console.log(res);
})();