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

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

License

Notifications You must be signed in to change notification settings

amandeepmittal/startrek-names

Repository files navigation

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