0.2.0-alpha.4 • Published 6 years ago

@manta-style/plugin-mock-faker v0.2.0-alpha.4

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

@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