rwa-faker

1.0.7 • Public • Published

rwa-faker

Build Status Maintainability npm Dependency Status npm Open Source Love Open Source Love

NPM

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

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

// 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

// 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

License

MIT License

Copyright (c) 2019 Igwaneza Bruce knowbeeinc@gmail.com

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.

Readme

Keywords

none

Package Sidebar

Install

npm i rwa-faker

Weekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

47.6 kB

Total Files

20

Last publish

Collaborators

  • knowbee