https://github.com/shemmjunior/bandia
Tanzania fake random data generator
https://github.com/shemmjunior/bandia
data-generator faker-generator mock-data tanzania
Last synced: 7 days ago
JSON representation
Tanzania fake random data generator
- Host: GitHub
- URL: https://github.com/shemmjunior/bandia
- Owner: shemmjunior
- License: mit
- Created: 2021-06-10T15:47:03.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-06-12T17:10:30.000Z (about 4 years ago)
- Last Synced: 2026-01-26T14:21:49.933Z (5 months ago)
- Topics: data-generator, faker-generator, mock-data, tanzania
- Language: JavaScript
- Homepage: https://bandia.netlify.app/
- Size: 255 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.com/shemmjunior/bandia)
# Bandia Data
Generate Tanzanian based mock data for fast ui population and server responses mockups.
[View demo](https://bandia.netlify.app/#/playground)
### Installation and Usage
To install run `npm install bandia-data`
```javascript
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
- [x] First Name
- [x] Last Name
- [x] Full Name
- [x] Email
- [x] Phone
- [x] National ID
- [ ] Job Title
- [ ] Avatar
- [x] Tribe
### Location
- [ ] Region
- [ ] District
- [ ] Ward
### Finance
- [x] Bank Name
- [ ] Account Number
- [ ] Amount
- [ ] Transaction Type
### Company
- [x] Company Name
- [ ] Address
- [ ] Description
### Dates
- [x] Past
- [x] Future
- [x] Between
### Ecommerce
- [ ] Products with pricing
- [ ] Descriptions
### Miscallenous
- [x] Color
- [x] Food
### Acknowledgements
- Inspired by [Faker.js](https://github.com/Marak/Faker.js)
## Contributing
Contributions are always welcome 😃! Currently we need more data and you can raise a PR for any issue or feature support.
## License
[MIT](https://choosealicense.com/licenses/mit/)