@manta-style/plugin-mock-faker

Manta Style Mock Plugin - Faker

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
3933May 25, 2021Jul 10, 2018Minified + 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.