1.0.1 • Published 11 months ago

fact-gen v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

fact-gen

A simple npm package that generates random facts.

Installation

npm install fact-gen

API

FactGenerator

You can use this to generate random facts for different use-cases like loading screens in your video games or for placeholders in your Javascript applications

Methods

fact()

Generates and returns a random fact.

Example

const FactGenerator = require('fact-gen');

const generator = new FactGenerator();
const randomFact = generator.fact();
console.log(randomFact);

Output:

Did you know that a group of flamingos is called a 'flamboyance'? Talk about fabulous!
1.0.1

11 months ago

1.0.0

11 months ago