Fake
fake
Method allowing to generate fake data.
Parameter | Type | Description |
---|---|---|
options | DataFakerOptions | Method options. |
DataFakerOptions
Parameter | Type | Description |
---|---|---|
local | string | |
seed | number |
returns
DataFaker
DataFaker
Function | Return type | Description |
---|---|---|
seed | void | |
address | address | |
animal | animal | |
commerce | commerce | |
company | company | |
database | database | |
datatype | datatype | |
finance | finance | |
git | git | |
hacker | hacker | |
helpers | helpers | |
image | image | |
internet | internet | |
lorem | lorem | |
name | name | |
music | music | |
phone | phone | |
random | random | |
system | system | |
time | time |
Basic Usage
await I.fake({local: 'zh_CN', seed: 123456}).animal().cat()