Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Latest commit

 

History

History
49 lines (37 loc) · 1.61 KB

readme.md

File metadata and controls

49 lines (37 loc) · 1.61 KB

startrek-names

Get random StarTrek names.

travis build codecov coverage version downloads Commitizen friendly MIT License

startrek-names is a Node.js module to randomly generate StarTrek character names in a site/application or use within command-line.

It also works with.

Installation

To install this package, save it as a dependency in package.json file:

npm install startrek-names --save

Require the module in your Node.js application:

var startrekChar = require('startrek-names');

To insert a random quote:

console.log(startrekChar());
// "James T. Kirk"
console.log(startrekChar());
// "Spock"

Command Line

startrek can be used in the command line.

Install the package globally using npm:

npm install startrek-names -g

To run:

$ startrek-names
James T. Kirk