useless-facts
v1.0.2
Published
An npm package that returns a useless fact!
Readme
useless-facts
An npm package that returns a random useless fact!
Facts are fetched using the uselessfacts.jsph.pl API.
Installation
npm install useless-factsUsage
const getFact = require("useless-facts");
getFact()
.then(console.log)
.catch(console.error);Example Outputs
Banging your head against a wall for one hour burns 150 calories."Underground" is the only word in the English language that begins and ends with the letters "und"About
This package fetches a random fact from here, parses it, and returns just the fact string.
- No dependencies
- Perfect for terminal fun, bots, or boredom relief
