NPM package to get popular movie quotes.
A simpleGetting started
$ npm i popular-movie-quotes --save
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 i popular-movie-quotes --save
Usage
- getAll() method returns an array of objects, each containing quote and movie.
- getQuoteByYear(startYear, endYear) method returns a sorted object within the range of year startYear -endYear**
- getSomeRandom(count) method returns an array (of length 'count') of non-duplicate random objects containing quote and movie.
- getRandomQuote() method returns a random movie quote :
I used to think that my life was a tragedy But now I realize it’s a comedy
- getQuotesByMovie("MovieName") method returns an array with all quotes of MovieName movie, else returns empty.
- getQuotesByType("movie/anime/tv") method returns an array with all quotes of type movie/anime/tv, else returns empty.
const movieQuote = ; console; //returns an object with all available quotes. console; // returns an object of 10 random quotes. console; // returns a random quote console; // returns a sorted object within// the range of year 2000-2019 console; //If present returns and array// with all quotes of joker movie, else returns empty. console; //If present returns and array// with all quotes of type anime, else returns empty.
Testing
- Check if quote is duplicate/already present.
$ npm test
Want to contribute?
Please check issues here!
License
Let's get connected
Special Thanks
Support me for a couple of coffee
Hey! Help me out with a couple of coffee!