README
Faker
A Package That Will Generate Any Fake Data For You
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 usersfirstname
- will generate you firstnamelastname
- will generate you lastnameemails
- will generate you emailsusername
- will generate you usernamephone
- will generate you phone numberlocation
- will generate you location with longitude and latitudebithdate
- 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