rnameg
v1.0.3
Published
Random name generator.
Downloads
2
Readme
RNameG
Introduction
Random name generator for use in testing, benchmarking and mocking.
Prerequisite
Requires Node.js 6.9.x or higher.
Install
Use NPM or Yarn
npm install rnameg
Usage Example
const rng = require('rnameg');
// generates 1000 names
rng(1000).then((generatedNames) => console.log(generatedNames));
Default Data
The program uses English names from Erik Norvelle's name dataset as default.
To use custom first and last name dataset, provide additional arguments:
rng(1000, <path to first name dataset file>, <path to surname dataset file>)
.then((generatedNames) => console.log(generatedNames));
Testing
yarn run test
License
MIT