Package Exports
- facts-generator
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (facts-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
INTRODUCTION
What's the project about? Facts generator is an NPM package that returns an amazing and suprising fact on a daily.
Installation
npm i facts-generator
Usage
Example
const fact = require("./index.js");
Then ...
const fetchFact = fact.getFact();
And finally,
console.log(fetchFact.fact + " - " + fetchFact.category);
License
This repository is licensed with MIT License