nigerian-names-generator
v1.0.1
Published
A package that generates nigerian names
Downloads
4
Readme
Nigerian Name Generator
Introduction
The Nigerian Name Generator is a Node.js package that allows users to generate Nigerian names randomly or combine first names and last names to create full names.
Installation
You can install the package via npm:
npm install nigerian-names-generator
Usage
Generating Random Name
To generate a random Nigerian name, you can use the generateRandomName()
function:
const { generateRandomName } = require("nigerian-names-generator");
const randomName = generateRandomName();
console.log(randomName); // Output: e.g., "Olufemi", "Chidubem", "Adewale", etc.
Generating Full Name
To generate a full name by combining a random first name and last name, you can use the generateFirstNameAndLastName()
function:
const { generateFirstNameAndLastName } = require("nigerian-names-generator");
const fullName = generateFirstNameAndLastName();
console.log(fullName); // Output: e.g., "Chinonso Odum", "Emeka Nwosu", "Folasade Lawal", etc.
Data Source
The names used in this package are sourced from a list of common Nigerian names. The package ensures that generated names align with Nigerian naming conventions.