A JavaScript micro-library to get quotes of Harvey Specter, from the series Suits.
console.log('Harvey says...');
harveyQuotes.random(); // "I don’t play the odds, I play the man."
harveyQuotes.random(); // "Don't go to trial."
harveyQuotes.random(); // "Life is like this__ . I like this ^-."
...
Who doesn't love a good Harvey Specter reply?
harvey-specter-quotes is a micro-library that can be used to generate quotes from Suits Series, spoken by Harvey. This package is an attempt to document the wisdom that is given to all, by the makers of Suits.
Harvey Specter, is a cocky lawyer at a top New York Law Firm. Known as the 'best closer' in the city, he is one hell of a lawyer. He has built his career and life around one thing: winning. The Internet features his quotes in discussions, blogposts, posters, and even in memes. Inspired by those, this library aims to record his quotes from the Show.
The following are pre-requisites to run :
Inside your project, run:
$ npm install harvey-specter-quotes
<script src='https://unpkg.com/[email protected]/dist/index.umd.js'></script>
<!-- or -->
<script src='https://unpkg.com/[email protected]/dist/index.umd.min.js'></script>
You can load the node module dependency into your code with a require call:
var harveyQuotes = require('harvey-specter-quotes');
var harveyQuotes = require('harvey-specter-quotes');
var allQuotes = harveyQuotes.all;
var randomQuote = harveyQuotes.random();
var anotherRandomQuote = harveyQuotes.random();
console.log('Harvey replied,', randomQuote);
<script>
var quote1 = harveySpecterQuotes.random();
</script>
The harvey-specter-quotes
object has the following methods and attributes:
Returns all available quotes as an array.
Function that returns a random quote from the collection of quote, that is never same as the previous call.
var randomQuote = harveyQuotes.random();
var anotherRandomQuote = harveyQuotes.random();
// randomQuote !== anotherRandomQuote
// At all times
When passed in an optional number as argument, API returns an array of quotes from the collection matching length of the argument specified.
var moreQuotes = harveyQuotes.random(4);
console.log(moreQuotes);
>> [ 'The better you dress, the worse you can behave.',
'Life is a game. Play to win.',
'Work until you no longer have to inroduce yourself',
'Win a no win situation by rewriting the rules.' ]
Do have some more cool ideas for this project? Maybe you found some bugs? or few typos? Can't scratch off the itch to make this even more awesome?
Guess what, I have been looking for you! 🎉 Open an issue or submit a pull!
- Add Documentation - in form of comments & docs(for example, a CONTRIBUTING.md)
- Come up with features to improve the project
- Find Broken things and open issues
- Enlighten me with better coding patterns and structures
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Thanks to @kentcdodds to have helped me get started with my first-ever Open Source library. Checkout his blogpost and course here.
This project is licensed under the MIT License.
Arjith Natarajan © 2018