@manta-style/plugin-mock-iterate

Manta Style Mock Plugin - Iterate

Stats

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

Readme

@manta-style/plugin-mock-iterate

Installation

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

Usage

/**
 * 
 * @iterate 'Happy'
 * @iterate 'Birthday'
 * @iterate 'To'
 * @iterate 'You'
 * 
 */
  message: string;
  • Every call will generate the next message
  • First call will return 'Happy', then 'Birthday', then 'To', then 'Yout', then back to 'Happy' again.

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.