predator-quotes

Get quotes from the movie Predator(1987)

Usage no npm install needed!

<script type="module">
  import predatorQuotes from 'https://cdn.skypack.dev/predator-quotes';
</script>

README

predator logo

Get quotes from the movie Predator(1987)

version travis build mit license

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

Predator Quotes

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

License

MIT © David Valles