maq
v1.0.1
Published
Make queue (Array object) by specifing each number of elements.
Downloads
1
Readme
maq
Make queue (Array object) by specifing each number of elements.
const maq = require('maq');
var array = maq({ work: 3, sleep: 2 });
// [ 'sleep', 'work', 'work', ... ]
Also, command line interface is avaiable.
$ maq --work 3 --sleep 2
work
sleep
work
work
sleep
License
Copyright (C) 2016 Retorillo
Distributed under the MIT license.