1.0.0 • Published 7 years ago

@abrezina/dummy-data v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

dummy-data

Simple node.js library for generating dummy data for tests or to use fake names for anomym data

install

npm install --save @abrezina/dummy-data

person generator

Generates a person object with firstname, surname and country. Firstname and surname are the 98 most common for the country. The country is one of DE, US and JP.

example

var personGenerator = require('@abrezina/dummy-data').personGenerator;

var randomPerson = personGenerator.generate();

console.log('Hello %s %s from %s', randomPerson.firstname, randomPerson.surname, randomPerson.country);