Skip to content

Latest commit

 

History

History
74 lines (55 loc) · 1.5 KB

README.md

File metadata and controls

74 lines (55 loc) · 1.5 KB

Faker

A Package That Will Generate Any Fake Data For You



Fakee


GitHub

Installation

npm install faker_emad

Usage

const fakeData = require('fakeData');
const users = fakeData(1, {
    firstname: true,
    emails: true,
}); /*  returns -> 
    [
        {firstname: 'someone', emails: "someone@test.com"}
    ]
    */

APIs

  • users - will generate you users
  • firstname - will generate you firstname
  • lastname - will generate you lastname
  • emails - will generate you emails
  • username - will generate you username
  • phone - will generate you phone number
  • location - will generate you location with longitude and latitude
  • bithdate - will generate you birthdate

More Examples

const fakeData = require('fakeData');

const firstname = fakeData.firstname(5);
const lastname = fakeData.lastname(5);
const emails = fakeData.emails(5);
const username = fakeData.username(5);
const phone = fakeData.phone(5);
const location = fakeData.location(5);
const birthdate = fakeData.birthdate(5);

Contributing

This package is under development and I would be glad if you share your idea with me and add any line of your idea with the code that you write in this package Any changes would be appreciated -Emad Baqeri

Maintainers