fake-people
v1.0.0
Published
Generate fake personal data
Downloads
11
Maintainers
Readme
Fake People
Generating fake data personal from tests
Install
npm install fake-people --save
Uninstall
npm uninstall fake-people --save
Usage
The function generate is responsible for returning the data according to the necessary requirements. For it takes two parameters, the first being the number of people who should be created and the second, the fields that were to be returned.
This return one person with full property:
let fakePeople = require('fake-people')
/*
-> firstName
-> lastName
-> ...
*/
fakePeople.generate(0)
/*
-> firstName
-> lastName
-> ...
*/
fakePeople.generate(10)
fakePeople.generate(10,['firstName','address'])
All property
For now, only top-level properties are available to be passed as argument
- firstName
- lastName
- contacts
- phone
- documents
- rg
- cpf
- residency
- birthday
- bankAccount
- account
- type
- balance
- currency
- job
- company
- area
- office
- adress
- street
- streetAddress
- zip
- city
- state