Skip to content

LeNitrous/anime-themes

Repository files navigation

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
    });

About

A wrapper for interacting around https://themes.moe

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published