Skip to content

๐Ÿ“š Elevate Your Content with Anime Insights! Use our npm package to effortlessly integrate random anime facts into your website, Discord bot, and beyond. ๐ŸŒŸ

License

Notifications You must be signed in to change notification settings

kyrea/anime-facts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

49 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Generate random anime facts with a huge database.

Powered by Animu

Need support? Click here

Installation:

NPM

$ npm install anime-facts

YARN

$ yarn add anime-facts

Query parameters [ OPTIONAL ]

Parameters Type Description
tags String Filter random fact by tag(s). Takes a list of one or more tag names, separated by a comma (meaning AND) or a pipe (meaning OR). A comma separated list will match facts that have all of the given tags. While a pipe (|) separated list will match facts that have either of the provided tags.
minLength Int The minimum Length in characters ( can be combined with maxLength )
maxLength Int The maximum Length in characters ( can be combined with minLength )

Usage:

const { getFact } = require("anime-facts");
getFact().then((fact) => console.log(fact));

Using Query:

const { getFact } = require("anime-facts");
// Note currently there are only fews tags, length available in the database. So, it might return the same data multiple times.
getFact(null, 1, 100).then((fact) => console.log(fact)); 

// Returns with:
{
  id: 5,
  tags: [ 'TEZUKA Osamu', 'Artist' ],
  fact: 'TEZUKA Osamu is the most famous manga artist in Japan.',
  length: 54
}

Functions

Functions Description Usage
getFact Generate random anime facts. random.getFact()

Credits

@LamkasDev for adding facts to prior database. PR #1
@xMercyTheDeveloper for adding a fact to prior database. PR #2
@Lioness100 for adding types and improving codes in version 2.2.6. PR #3 and #4