Logo Lanfrica

kodegrenade/naija-faker

Domain:

natural language processing

Record type:

software
Creator:
kod
Host:
Naija Faker is a javascript library that generates fake typical Nigerian data ranging from name, address, phone number, LGAs and states for you. It supports Yoruba, Igbo, and Hausa ethnic groups with culturally authentic data. # Naija Faker Naija Faker is a javascript library that generates fake typical Nigerian data ranging from `name`, `address`, `phone number`, `lgas` and `states` for you. It supports **Yoruba**, **Igbo**, and **Hausa** ethnic groups with culturally authentic data. ## Features - Authentic Nigerian names (Yoruba, Igbo, Hausa) - Phone numbers for all 4 major networks (MTN, Glo, Airtel, 9mobile) - Addresses across all Nigerian regions - All 37 states (36 states + FCT) - 774 Local Government Areas - Nigerian-specific titles (Chief, Alhaji, Oba, Emir, Igwe, and more) - BVN, NIN, and bank account generation (26 Nigerian banks) - License plates, companies, and 42 Nigerian universities - Geographically consistent identities (name + state + LGA all match) - Detailed persons with education, work, and vehicle records - Date of birth, blood group, genotype, marital status - Salary generation with level-based income bands - Next of kin generation - Bulk export to JSON or CSV - Seeded deterministic generation for reproducible tests - TypeScript support with full IntelliSense - AI/LLM integration via `schema.json` and `describe()` method ## Installation Install the package in your existing project ```bash npm install @codegrenade/naija-faker ``` ## Basic Usage/Examples Import or require the the package in your project to initialize the faker generator. ```javascript import faker from '@codegrenade/naija-faker' ``` or ```javascript const faker = require('@codegrenade/naija-faker') ``` Configuration for data choice (**optional**) > sets default language and gender for names to be generated and the local network provider for phone number ```javascript faker.config({ language: "yoruba", gender: "male", network: "glo", }) ``` > NB: `Yoruba`, `Igbo` and `Hausa` are the only Nigerian languages supported at the moment. Generate fake data by calling `faker` methods. ```javascript faker.title() // Mrs. faker.name() // Temilade Abolade faker.address() // 45, Alhaji Kazeem Stre …