1.0.1 • Published 7 years ago

characternamegenerator v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Story Name Generator

Travis Codecov Coverage NPM Version NPM Downloads License Commitizen friendly

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' ]
*/
1.0.1

7 years ago

1.0.0

7 years ago