Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

All property

let fakePeople = require('fake-people')

/*
    -> firstName
    -> lastName
    -> ...
 */
fakePeople.generate(0)

This return ten person with full property:

All property

/*
    -> firstName
    -> lastName
    -> ...
 */
fakePeople.generate(10)

This return ten person with firstName and address:

All property

fakePeople.generate(10,['firstName','address'])

For now, only top-level properties are available to be passed as argument

  • firstName
  • lastName
  • contacts
    • phone
    • email
  • documents
    • rg
    • cpf
  • residency
  • birthday
  • bankAccount
    • account
    • type
    • balance
    • currency
  • job
    • company
    • area
    • office
  • adress
    • street
    • streetAddress
    • zip
    • city
    • state

About

Generate fake personal data for tests

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages