https://github.com/lenitrous/anime-themes
A wrapper for interacting around https://themes.moe
https://github.com/lenitrous/anime-themes
Last synced: about 2 months ago
JSON representation
A wrapper for interacting around https://themes.moe
- Host: GitHub
- URL: https://github.com/lenitrous/anime-themes
- Owner: LeNitrous
- License: mit
- Created: 2020-01-12T09:16:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T05:00:51.000Z (over 2 years ago)
- Last Synced: 2025-03-29T10:33:30.302Z (2 months ago)
- Language: TypeScript
- Size: 604 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# anime-themes
   [](https://ko-fi.com/W7W71CF9V)
A library used for interacting around [Themes.moe](https://themes.moe). This is an unofficial wrapper library and is not affiliated with the said website.
This uses [node-fetch](https://github.com/node-fetch/node-fetch#) for making requests.
* [Installation](#Installation)
* [Contributing](#Contributing)
* [Documentation](#Documentation)
* [Basic Usage](#Basic-Usage)
* [Requiring](#Requiring)
* [Getting an anime by title](Getting-an-anime-by-title)
* [Getting an anime by MyAnimeList ID](Getting-an-anime-by-MyAnimeList-ID)## 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
```js
const themes = require("anime-themes");
```
ES6
```js
import AnimeThemes from "anime-themes";
```
#### Getting an anime by title
```js
themes.search("Azur Lane")
.then((anime) => {
console.log(anime.themes[0].title); // graphite/diamond
});
```
#### Getting an anime by MyAnimeList ID
```js
themes.search(36633)
.then((anime) => {
console.log(anime.title); // Date A Live III
});
```