predator-quotes
v1.1.16
Published
Get quotes from the movie Predator(1987)
Downloads
3
Maintainers
Readme
Get quotes from the movie Predator(1987)
Disclaimer
This repo contains offensive language. The language does not align with my personal beliefs. The purpose of this repository was for my personal education in building software - beyond that, this code is generally useless. If you are offended, I sincerely apologize and I urge you not to use this code.
Demo
Install
$ npm install --save predator-quotes
Usage
const predatorQuotes = require('predator-quotes');
console.log(predatorQuotes.all);
console.log(predatorQuotes.random());
API
.all
Returns: array
A list of all quotes.
.random()
Returns: string
A random quote. (i.e. “I ain't got time to bleed.”)
CLI
$ npm install --global predator-quotes
$ predator-quotes --help
Get quotes from the movie Predator(1987)
Usage:
predator-quotes [<options>]
Options:
--help Print usage
--all List all quotes
Examples:
$ predator-quotes
$ predator-quotes --all
Browser
<!DOCTYPE html>
<html>
<head>
<!-- replace [version] with actual version (i.e. 1.1.15) -->
<script src="https://unpkg.com/predator-quotes@[version]/dist/predator.quotes.umd.min.js"></script>
</head>
<body>
<script>
// the umd file exposes the global `predatorQuotes`.
console.log(predatorQuotes.all);
</script>
</body>
</html>
Related
- calvin-and-hobbes-quotes - Get Calvin and Hobbes quotes
- dog-names - Get popular dog names
- pokemon - Get Pokémon names
- superb - Get superb like words
- superheroes - Get superhero names
- supervillains - Get supervillain names
- random-tree-names - Get tree names
- yes-no-words - Get yes/no like words
License
MIT © David Valles