A simple NPM Package which returns random Inspirational Quotes. It provides awesome quotes to display in your application. Get your daily quote and stay motivated!
Click here to view this package on NPM registry. Check the homepage here.
$ npm install --save inspirational-quotes
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
- 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());
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
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 @ [email protected]
Checkout this to view works by other developers who've used this module.
Please check issues here!
[ISSUE #4] : Add More Inspirational Quotes (Recommended for beginners)
MIT © Vinit Shahdeo
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!