Inspirational Quotes
NPM Package which returns random Inspirational Quotes. It provides awesome quotes to display in your application. Get your daily quote and stay motivated!
A simpleClick here to view this package on NPM registry. Check the homepage here.
Getting started
$ npm install --save inspirational-quotes
Installation
This is a Node.js module available through the npm registry.
Before installing, download and install Node.js.
Installation is done using the
npm install
command:
$ npm install inspirational-quotes
Usage
- getQuote() method returns an object containing text and author.
{
"text":"My number one piece of advice is: you should learn how to program.",
"author":"Mark Zuckerberg, founder of Facebook"
}
- getRandomQuote() method returns a random inspirational quote :
You miss 100 percent of the shots you don’t take.
const Quote = require('inspirational-quotes');
console.log(Quote.getRandomQuote());
console.log(Quote.getQuote());
Examples
To view the examples, clone the inspirational-quotes repo and install the dependencies:
$ git clone https://github.com/vinitshahdeo/inspirational-quotes.git
$ cd examples
$ npm install
Then run the demo.js:
$ node demo.js
Related Works
Checkout Quotter - A twitter bot which tweets random quotes with image and #hashtags!
I've made this using inspirational-quotes NPM module. I'll be more than happy to know if you build something using this module. Share your story @ vinitshahdeo@gmail.com
Checkout this to view works by other developers who've used this module.
Want to contribute?
Please check issues here!
[ISSUE #4] : Add More Inspirational Quotes (Recommended for beginners)
License
MIT © Vinit Shahdeo
Oh, Thanks!
Thank you for being here! You can find my other NPM Packages here.
Let's get connected if we share the same views! Invite me to connect on LinkedIn.
One day your life will flash before your eyes. Make sure it is worth watching!