npm.io
1.0.1 • Published 6 years agoCLI

movie-quotes

Licence
MIT
Version
1.0.1
Deps
2
Size
11 kB
Vulns
0
Weekly
0
Stars
4

movie-quotes Build Status

Get popular movie quotes

The name list is just a JSON file and can be used wherever.

Not accepting PRs for additional quotes.

Install

$ npm install --save movie-quotes

Usage

const movieQuotes = require('movie-quotes');

movieQuotes.random();
//=> 'Max'

API

.all

Type: array

Top 100 best movie quotes according AFI.

.random()

Type: function

Random movie quote.

CLI

$ npm install --global movie-quotes
$ movie-quotes --help

  Examples
    $ movie-quotes
    "Show me the money!" Jerry Maguire

    $ movie-quotes --all
	"Frankly, my dear, I don't give a damn." Gone with the Wind
    "I'm gonna make him an offer he can't refuse." The Godfather
    ...

  Options
    --all   Get all quotes instead of a random quote

License

MIT Lucas Vilaboim