What's the project about? Facts generator is an NPM package that returns an amazing and suprising fact on a daily.
npm i facts-generator
const fact = require("./index.js");
Then ...
const fetchFact = fact.getFact();
And finally,
console.log(fetchFact.fact + " - " + fetchFact.category);
This repository is licensed with MIT License