fake-seeder
v1.1.1
Published
Simple library to generate fake user details
Downloads
1
Readme
fake-seeder
simple library to generate fake user details for seeding.
GitHub
https://github.com/dsfernandes-cci/fake-seeder
install using npm
npm install fake-seeder
import in the project
const fakeSeeder = require ('fake-seeder')
number parameter is optional
get first names
fakeSeeder.getFirstName(gender,number)
- returns a random first name of specified gender
fakeSeeder.getRandomFirstName(number)
- returns a random first name
get last name
fakeSeeder.getLastName(number)
- returns a random last name
get full name
fakeSeeder.getFullName(number)
- returns a random full name
get email
fakeSeeder.getEmail(number)
- returns a random email ID
generate random cards
fakeSeeder.generateCard(number) default number=1
- returns random user card with the following structure
{
firstName: 'foo'
lastName: 'bar',
email: '[email protected]'
}
data references
https://homepage.net/name_generator/
https://www.randomlists.com/email-addresses?qty=200