A NPM Package for quotes. The database currently includes more than 15000 facts.
allfacts library is just wrapper around https://github.com/AmitGujar/freeFacts
npm install allfacts --save
Get random fact
const { getRandomFacts } = require("allfacts");
getRandomFacts()
.then((fact) => {
console.log(fact);
})
.catch((err) => {
console.log(err);
});
All feedback and contributions are welcome!