@manta-style/plugin-mock-faker

Manta Style Mock Plugin - Faker

Stats

StarsIssuesVersionUpdatedCreatedSize
@manta-style/plugin-mock-faker
39330.2.0-alpha.43 years ago3 years agoMinified + gzip package size for @manta-style/plugin-mock-faker in KB

Readme

@manta-style/plugin-mock-faker

Installation

$ yarn add @manta-style/plugin-mock-faker

Usage

/**
 * @faker {{internet.userName}}
 */
userName: string;
/**
 * @faker {{address.city}}, {{address.state}}, {{address.country}}
 */
 address: string;
/**
 * @faker date.past
 */
 lastLoggedIn: number;
  • Use faker.js to generate mock data
  • for String type, will call faker.fake to generate mock data
  • For Number type, will call faker.method.path() to generate the mock data

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.