Generating fake data personal from tests
npm install fake-people --save
npm uninstall fake-people --save
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)
This return ten person with full property:
/*
-> firstName
-> lastName
-> ...
*/
fakePeople.generate(10)
This return ten person with firstName and address:
fakePeople.generate(10,['firstName','address'])
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