picard-quotes
v0.0.4
Published
Quotes from the Legendary Jean-Luc Picard
Downloads
29
Maintainers
Readme
Installation (via GitHub)
$git clone https://github.com/samcus/picard-quotes.git
$cd picard-quotes
$npm install
Run Example
$npm run example
Installation (via NPM)
$npm install -S picard-quotes
Installation (via Docker)
$docker pull samcus/picard-quotes
$docker images
$docker run -i -t samcus/picard-quotes:latest picard-quotes
# Optionally Play with Build
$docker run -i -t samcus/picard-quotes:latest bash
Usage
const picard = require('picard-quotes');
// All Quotes
picard.quotes((quotes) => {
if (quotes) console.log(quotes);
});
// Random Quote
picard.quote((quote) => {
if (quote) console.log(quote);
});
// Specific Quote
picard.quote({number: 1}, (quote) => {
if (quote) console.log(quote);
});
CLI Usage
$npm i -g picard-quotes
$picard-quotes
# "The line must be drawn here! This far, no farther!" - Jean-Luc Picard
Unit Test
$npm test
Coverage Test
# Terminal Report
$npm run coverage
# Terminal Report and Open HTML Report
$npm run coverage-report