Random Star Wars names
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.