baby-names
v0.0.3
Published
get popular baby names!
Downloads
3
Readme
baby-names
:baby: get popular baby names!
Install
$ npm install --save baby-names
Usage
const babyNames = require('baby-names');
babyNames.all()
// returns array of names
babyNames.random();
// returns 'Ava'
babyNames.randomAmount(2)
// returns ['Ethan', 'Emma']
babyNames.startsWith('Ja')
//
API
.all
Type: <Array>
Returns an array of the top 50 baby names in alphabetical order.
.random()
Type: <Function>
Returns a random baby name.
.randomAmount(amount)
Type: <Function>
Returns an array of corresponding amount of random baby names.
.startsWith(letters)
Type: <Function>
Returns an array of baby-names that start with those letters.