Skip to content

Latest commit

 

History

History
50 lines (42 loc) · 1.68 KB

README.md

File metadata and controls

50 lines (42 loc) · 1.68 KB

anime-themes

GitHub npm GitHub Action (Tests) GitHub Action (Lint)

ko-fi

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.

Installation

> npm install anime-themes

Contributing

Fork this repository and run npm install to install dependencies and development dependencies.

Run tests with npm run test before making any pull requests.

Documentation

Basic Usage

Requiring

Common JS

const themes = require("anime-themes");

ES6

import AnimeThemes from "anime-themes";

Getting an anime by title

themes.search("Azur Lane")
    .then((anime) => {
        console.log(anime.themes[0].title); // graphite/diamond
    });

Getting an anime by MyAnimeList ID

themes.search(36633)
    .then((anime) => {
        console.log(anime.title); // Date A Live III
    });