https://github.com/knowbee/rwa-faker
🌌generate massive amounts of realistic fake data in Rwanda native language (Ikinyarwanda)
https://github.com/knowbee/rwa-faker
Last synced: 5 months ago
JSON representation
🌌generate massive amounts of realistic fake data in Rwanda native language (Ikinyarwanda)
- Host: GitHub
- URL: https://github.com/knowbee/rwa-faker
- Owner: knowbee
- License: mit
- Created: 2019-12-06T05:12:42.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-29T07:30:34.000Z (over 5 years ago)
- Last Synced: 2025-10-04T02:29:39.162Z (9 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/rwa-faker
- Size: 697 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# rwa-faker
[](https://travis-ci.org/knowbee/rwa-faker)
[](https://codeclimate.com/github/knowbee/rwa-faker/maintainability)
[](https://www.npmjs.com/package/rwa-faker)
[](https://david-dm.org/knowbee/rwa-faker)
[](https://www.npmjs.com/package/rwa-faker)
[](https://github.com/ellerbrock/open-source-badge/)
[](https://github.com/ellerbrock/open-source-badge/)
[](https://nodei.co/npm/rwa-faker/)
This is a simple npm package that generates massive amounts of realistic fake data in Rwanda native language (Ikinyarwanda)
## Installation
> npm install rwa-faker
> yarn add rwa-faker
## Usage
```js
const { rwafaker } = require("rwa-faker");
// Generate random first name
const fname = rwafaker.firstName(); // 'Bisamaza'
// Generate random email
const email = rwafaker.email(); // 'bisamaza_trev@gmail.com'
```
For all generators you need to use function call operator
## Embedded generators
### Single output
```js
// Person
rwafaker.firstName(); // 'Kampayana'
rwafaker.lastName(); // 'Schrom'
rwafaker.fullName(); // 'Kampayana Schrom'
rwafaker.email(); // 'kampayana_sch@ur.ac.rw'
```
### Multiple outputs (array) - max(100)
Above 100, a generator will return error
```js
// Person
rwafaker.firstName(2); // [ 'Semahe', 'Kayitesi' ]
rwafaker.lastName(2); // [ 'Casteneda', 'Haberl' ]
rwafaker.fullName(2); // [ 'Karani Laris', 'Uwizeye Drawbridge' ]
rwafaker.email(2); // [ 'kavuna.lari@rwandaonline.rw', 'gatesi_draw@rra.gov.rw' ]
```
## Contributing
- Please before making a PR, read first this [Contributing Guideline](./CONTRIBUTING.md)
# License
MIT License
Copyright (c) 2019 Igwaneza Bruce
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.