@abrezina/dummy-data 中文文档教程
dummy-data
简单的 node.js 库,用于为测试生成虚拟数据或为 anomym 数据使用假名称
install
```sh 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
js var personGenerator = require('@abrezina/dummy-data').personGenerator;
var randomPerson = personGenerator.generate();
console.log('你好 %s %s 来自 %s', randomPerson.firstname, randomPerson.surname, randomPerson.country); ```
dummy-data
Simple node.js library for generating dummy data for tests or to use fake names for anomym data
install
```sh 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
js var personGenerator = require('@abrezina/dummy-data').personGenerator;
var randomPerson = personGenerator.generate();
console.log('Hello %s %s from %s', randomPerson.firstname, randomPerson.surname, randomPerson.country); ```