1.1.6 • Published 5 years ago

random-name-by-country v1.1.6

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

Random Names by Country

Overview

A simple NPM package for generating random names by country.

Installation

npm i random-name-by-country --save

Basic Usage

const  { randomName }  =  require("random-name-by-country");

console.log(randomName('US','M','full')); 
// John Doe

console.log(randomName('US','M','fn')); 
// John

console.log(randomName('US','M','sn')); 
// Doe

Info

1st Param2nd Param3rd Param
Country AbbreviationGenderName type

List of Option Parameters (either lowercase or uppercase)

Country (1st param) - I'll add more countries soon.
  • US - USA
  • MX - Mexico
Gender (2nd param)
  • M - Male
  • F - Female
  • MF - Random Male & Female
Name type (3rd param)
  • fn - Firstname
  • sn - Surname
  • full - Full name

Feel free to clone or fork this project: https://github.com/deanilvincent/random-name-by-country.git

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago