Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kyrea/anime-facts

📚 Elevate Your Content with Anime Insights! Use our npm package to effortlessly integrate random anime facts into your website, Discord bot, and beyond. 🌟
https://github.com/kyrea/anime-facts

anime anime-api anime-facts anime-fans discord discord-anime-api discord-bot discordjs hacktoberfest hacktoberfest-accepted hacktoberfest2022 javscript npm-package

Last synced: 2 months ago
JSON representation

📚 Elevate Your Content with Anime Insights! Use our npm package to effortlessly integrate random anime facts into your website, Discord bot, and beyond. 🌟

Awesome Lists containing this project

README

        

Generate random anime facts with a huge database.


Powered by Waifu.it

Need support? _[Click here](https://discord.gg/yyW389c)_

### First make sure you have a [Waifu.it](https://waifu.it/) API Token. Join _[this](https://discord.gg/yyW389c)_ discord server to get one.

## Installation:

### NPM

```bash
$ npm install anime-facts
```

### YARN

```bash
$ yarn add anime-facts
```

## Usage:

```javascript
const AnimeFact = require("anime-facts");
const api = new AnimeFact("YOUR TOKEN");

api.getFact().then((res) => console.log(res));

// Returns with:
{
id: 5,
fact: 'TEZUKA Osamu is the most famous manga artist in Japan.',
}
```

## Functions

| **Functions** | **Description** |
| :-----------: | ---------------------------- |
| getFact | Generate random anime facts. |

## Credits

[@LamkasDev](https://github.com/LamkasDev) for adding facts to prior database\
[@xMercyTheDeveloper](https://github.com/xMercyTheDeveloper) for adding a fact to prior database\
[@Lioness100](https://github.com/Lioness100) for adding types and improving codes in version [2.2.6](https://www.npmjs.com/package/anime-facts/v/2.2.6)\