harry-potter-names-improved

0.0.2-development • Public • Published

harry-potter-names

Get random Harry Potter names.

travis build codcov version downloads MIT Licence

Install

Install with npm

npm install harry-potter-names --save

Or if you prefer yarn

yarn add harry-potter-names

Usage

let harryPotterNames = require('harry-potter-names');
 
// To get array of all names
console.log(harryPotterNames.all);
 
// To get a random name (a string, of course)
console.log(harryPotterNames.random());
 
// The random function accepts a number to get an array of random names
console.log(harryPotterNames.random(5));

Other

This library was developed following this course made by the amazing Kent C. Dodds.

Note: now with 100pct more fluffy (and sanitized name strings)

Readme

Keywords

Package Sidebar

Install

npm i harry-potter-names-improved

Weekly Downloads

1

Version

0.0.2-development

License

MIT

Unpacked Size

4.8 kB

Total Files

3

Last publish

Collaborators

  • bithighlander