0.0.4 • Published 4 years ago
bandia-data v0.0.4
Bandia Data
Generate Tanzanian based mock data for fast ui population and server responses mockups.
For Full documentation visit https://bandia.shemmjunior.me
Installation and Usage
To install run npm install bandia-data
const bandia = require('bandia-data')
// Person
const firstName = bandia.person.firstName() // Alex
const lastName = bandia.person.lastName() // Matiku
const fullName = bandia.person.fullName() // Maswi Mussa
const email = bandia.person.email() // alphamusa@gmail.com
const phone = bandia.person.phone() // 0743800456
const nida = bandia.person.nida() // 19831212-63860-51590-43
const tribe = bandia.person.tribe() // Msukuma
// Dates
const dateBetween = bandia.date.between('2020-12-04', '2021-03-23') // 2021-01-03
const past = bandia.date.past() // 2019-04-05
const future = bandia.date.future() // Future Date from Today
// Finance
const bankName = bandia.finance.bank() // CRDB Bank
const companyName = bandia.company.name() // Katani Ltd
// Misc
const = bandia.misc.rangi() // Nyekundu
Supported Attributes
Person
- First Name
- Last Name
- Full Name
- Phone
- National ID
- Job Title
- Avatar
- Tribe
Finance
- Bank Name
- Account Number
- Amount
- Transaction Type
Company
- Company Name
- Address
- Description
Dates
- Past
- Future
- Between
Miscallenous
- Color
Acknowledgements
Inspired by Faker.js