nodejs-randomnames
v1.0.1
Published
Random names generator for NodeJS
Downloads
79
Maintainers
Readme
NodeJS Random names generator
Generate random male and female names in NodeJS. You can get a name from a list of 38.591 names.
Generate:
- Random name
- Number of random names
- Fullname
- Fullname object
- Random name by gender
- Numbers of random names by gender
- Fullname by gender
- Fullname object by gender
How to use:
Download via npm: npm install nodejs-randomnames
var NameGenerator = require('./path/to/node_modules/NameGenerator.js');
var randomName = NameGenerator.getRandomName();
var name = NameGenerator.getRandomNameByGender("male");
var name = NameGenerator.getRandomNameByGender("female");
var randomNames = NameGenerator.getRandomNames(2);
var randomNames = NameGenerator.getRandomNamesByGender(2, "male");
var randomNames = NameGenerator.getRandomNames(10);
var randomNames = NameGenerator.getRandomNamesByGender(10, "female");
var fullName = NameGenerator.getFullName();
var fullName = NameGenerator.getFullNameByGender("male");
var fullName = NameGenerator.getFullNameObject();
var fullName = NameGenerator.getFullNameObjectByGender("male");