random-starwars-names

1.2.0 • Public • Published

Random Star Wars names

NPM Build Status

Get a random Star Wars name.

This npm package is made to learn how to create an npm package.

It's based on the video tutorial and the repository of Kent C. Dodds.

Install

npm install random-starwars-names

Setup

var randomStarwarsNames = require('random-starwars-names')

List all Star Wars names

randomStarwarsNames.all;

Get a random Star Wars name

randomStarwarsNames.random();

Get an array of random Star Wars names

Note: example below would return 5 random Star Wars names.

randomStarwarsNames.random(5);

Run unit tests (one off)

npm test

Continuously run unit tests while developing

npm run test-watch

Create npm package

Learn how to create an npm package.

Readme

Keywords

Package Sidebar

Install

npm i random-starwars-names

Weekly Downloads

9

Version

1.2.0

License

GPL-3.0

Unpacked Size

42.5 kB

Total Files

9

Last publish

Collaborators

  • ebabel-eu