picard-quotes
Quotes from the Legendary Jean-Luc Picard
Last updated 3 years ago by samcus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install picard-quotes 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.4                                ...           latest (3 years ago)

4 Versions

  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 3
Dependencies (3)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |