fake-people

1.0.0 • Public • Published

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'])

All property

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

/fake-people/

    Package Sidebar

    Install

    npm i fake-people

    Weekly Downloads

    5

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • samoel_deltree