npm install snapple-facts --save-dev
All the methods that you will need are available in this class
import SnappleFacts from 'snapple-facts';
const snappleFacts = new SnappleFacts();
const randomFact: SnappleFact = snappleFacts.randomFact();
console.log(randomFact);
snappleFacts.randomFact(): SnappleFact;
snappleFacts.getFacts(): SnappleFact[];
snappleFacts.listFacts(): string[];
snappleFacts.getFactByNumber(factNumber: number): SnappleFact | undefined;
import { RandomFact, GetFacts, ListFacts, GetFactByNumber } from 'snapple-facts';
const randomFact: SnappleFact = RandomFact();
const facts: SnappleFact[] = GetFacts();
const factList: string[] = ListFacts();
const factByNumber: SnappleFact | undefined = GetFactByNumber(1);
Click on these badges to see how you might be able to help:
npm install
npm start
or
npm run dev
npm test
npm run build
- Thank you for considering to contribute
- Feel free to submit feature requests, UI updates, bugs as issues.
- Checkout Contribution Guidelines for more information.
- Have a feature request? Feel free to create a issue for it.
Give a ⭐ to show support for the project.