Name Generator
This is an easy to use node_module for generating names. The names to be included are held in JSON files making it very easy to extend.
How to install
$ npm install random-character-name
Methods
list()
will return a list of all random names that were generated.single()
will return a single random name.startsWithLetter(f,m,l)
will let you set the initials.numberOfNames(number)
will return the requested number of names.
Examples
var rndNameGen = require('random-character-name');
rndNameGen.list();
//generates a large array of names
/*
ex.
['Em Andre Vento',
'Marsiella Lester Drisko',
'Lou Charley Hoang',
'Bettye Ransell Cristabel',
...
'Shawnee Timothee Rigby',
'Roch Wilbur Ithnan',
'Shanta Wheeler Milicent',
'Janela Wally Marlowe' ]
*/
rndNameGen.single();
//generates a string with a random name
//ex. 'Donnie Reinhard Levin'
rndNameGen.startsWithLetter('A','C','E');
//generates a string with a name with requested initials
//ex. 'Ajay Christophorus Elset'
rndNameGen.numberOfNames(3)
//generates an array with the number of names requested.
/*
ex.
[ 'Nedi Burt Lexine',
'Cairistiona Jacobo Merl',
'Annaliese Bartolomeo Cherian' ]
*/