Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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. 🌟
- Host: GitHub
- URL: https://github.com/kyrea/anime-facts
- Owner: kyrea
- License: agpl-3.0
- Created: 2020-06-14T05:18:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-11T22:45:49.000Z (9 months ago)
- Last Synced: 2024-11-10T10:41:44.864Z (2 months ago)
- Topics: anime, anime-api, anime-facts, anime-fans, discord, discord-anime-api, discord-bot, discordjs, hacktoberfest, hacktoberfest-accepted, hacktoberfest2022, javscript, npm-package
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/anime-facts
- Size: 78.1 KB
- Stars: 14
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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)\