1.0.2 • Published 3 years ago
@anilseervi/inspirational-quotes v1.0.2
:zap: Inspirational Quotes :zap:
Get Inspired!

Installation
NPM:
npm install @anilseervi/inspirational-quotesYarn:
yarn add @anilseervi/inspirational-quotesUsage
Check out all the existing quotes.
Following exports are available from the module:
getAll()- returns all quotesgetRandom()- returns a random quote
The result is in the following shape:
{
"quote": "Always bet on JavaScript!",
"author": "Brendan Eich"
}Some quotes optionally have the source key. For example:
{
"quote": "Amateurs know that contributing something is better than contributing nothing.",
"author": "Austin Kleon",
"source": "Show Your Work!"
}Example
// Use require or import, either works
import { getAll, getRandom } from '@anilseervi/inspirational-quotes'
console.log(`All quotes`, getAll())
console.log(`A random quote`, getRandom())Contributing
Contributions are welcome! Please read the contributing guidelines first.
Author
- :raised_hands: @anilseervi :large_blue_circle: