Get random Harry Potter names.
Install with npm
npm install harry-potter-names --save
Or if you prefer yarn
yarn add harry-potter-names
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));
This library was developed following this course made by the amazing Kent C. Dodds.