Have ideas to improve npm?Join in the discussion! »

jazzon-repeat

1.0.0 • Public • Published

jazzon-repeat

Repeat given value n number of times

Installation

$ npm install --save jazzon-repeat

Usage

The helper "repeat" clones (deep) the current state given number of times and puts them in an array.

let jazzon = require('jazzon');
let repeat = require('jazzon-repeat');
 
jazzon
  .use(repeat())
  .compile({ foo: '@{ random(1, 10) | repeat(3) }'})
  .then(result => console.log(result)) // => {foo: [7, 7, 7]}

Keywords

Install

npm i jazzon-repeat

DownloadsWeekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar