1.0.0 • Published 9 months ago

uniquenamegeneratormod v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

Unique Name Generator

Overview

Unique Name Generator has a wide massive library of names to generate random Firstname and Lastname with a combinations of more than 50,00,000 records out of the box.

Documentation And Usage

Installation

  • This npm package is very simple to use.

    Perform the npm i <Package Name>

  • For Yarn

    yarn add <Package Name>

Usage

  • Call the npm package.
const oNameGenerator = require('uniquenamegeneratormod');
  • oNameGenerator is function which takes object as its parameter`.
let config = {
    firstName : {
        number : true, // Pass true if you want a number range to be added
        range : "0-9", 
        customString : "R1", 
        seperator : "_"
    },
    lastName : {
        number : false,
        range : "0-9",
        customString : "RR",
        seperator : ""
    }
}
  • Then pass the config to the function
var oResults = oNameGenerator(config) 
console.log(oResults);
  • The output will be generated in the form of an Array.
[ 'Maximilianus_8_R1', 'SwiersRR' ]
1.0.0

9 months ago