snapple-facts
v3.0.0
Published
Every Snapple Fact
Downloads
42
Readme
Usage
Installation
npm install snapple-facts --save-dev
Usage in Typescript
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);
Available Methods
snappleFacts.randomFact(): SnappleFact;
snappleFacts.getFacts(): SnappleFact[];
snappleFacts.listFacts(): string[];
snappleFacts.getFactByNumber(factNumber: number): SnappleFact | undefined;
Functional Usage
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);
Technologies
How To Contribute
Click on these badges to see how you might be able to help:
Installation
npm install
Running
npm start
or
npm run dev
Testing
npm test
Building
npm run build
Thanks to all Contributors 💪
- 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.
Your Support means a lot
Give a ⭐ to show support for the project.