1.0.0 • Published 9 years ago
fake-people v1.0.0
Fake People
Generating fake data personal from tests
Install
npm install fake-people --saveUninstall
npm uninstall fake-people --saveUsage
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
1.0.0
9 years ago