1.0.7 • Published 2 years ago

@divyanshu013/inspirational-quotes v1.0.7

Weekly downloads
11
License
MIT
Repository
-
Last release
2 years ago

Installation

yarn add @divyanshu013/inspirational-quotes

Usage

Check out all the existing quotes or the random quote demo.

Following exports are available from the module:

  • getAll() - returns all quotes
  • getRandom() - returns a random quote

The result is in the following shape:

{
	"quote": "Always bet on JavaScript!",
	"author": "Brendan Eich"
}

Some quotes also have a source key. For example:

{
	"quote": "Life moves pretty fast. If you don’t stop and look around once in a while, you could miss it.",
	"author": "Ferris Bueller",
	"source": "Ferris Bueller’s Day Off"
}

Example

// Use require or import, either works
const { getAll, getRandom } = require('@divyanshu013/inspirational-quotes');

console.log('All quotes', getAll());
console.log('A random quote', getRandom());

Author

Attributions

1.0.7

2 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.1

4 years ago