A library used for interacting around Themes.moe. This is an unofficial wrapper library and is not affiliated with the said website.
This uses node-fetch for making requests.
> npm install anime-themes
Fork this repository and run npm install
to install dependencies and development dependencies.
Run tests with npm run test
before making any pull requests.
Common JS
const themes = require("anime-themes");
ES6
import AnimeThemes from "anime-themes";
themes.search("Azur Lane")
.then((anime) => {
console.log(anime.themes[0].title); // graphite/diamond
});
themes.search(36633)
.then((anime) => {
console.log(anime.title); // Date A Live III
});