vscode-faker icon indicating copy to clipboard operation
vscode-faker copied to clipboard

Faking entities

Open pluxain opened this issue 5 years ago • 3 comments

Hi,

This is a question, not an issue.

Is it possible somehow to fake more complex data structure, using fakers provided here. Like : faker person ->

{ 
  name: faker name,
  address: faker address,
  phone: faker phone
}

pluxain avatar Mar 15 '19 12:03 pluxain

@pluxain do you mean that when typing faker person, it will generate that object? If yes, it is not possible atm 😄

deerawan avatar Mar 17 '19 07:03 deerawan

Yes this is what I meant. I asked in case it was be possible somehow to set this kind of faker ourselves in a file or something. Anyway, your plugin already saves me loads of time, so thank you for that

pluxain avatar Mar 18 '19 07:03 pluxain

Object creation would be extremely useful, similar to this original helper faker.helpers.createTransaction()

https://github.com/Marak/faker.js/blob/master/lib/helpers.js#L356-L374

arash-bizcover avatar Dec 31 '20 03:12 arash-bizcover