serial-loop
Last updated 11 years ago by nj48 .
ISC · Original npm · Tarball · package.json
$ npm install serial-loop 
SYNC missed versions from official npm registry.

Serial-loop

npm downloads Dependency Status devDependency Status npm-issues js-standard-style Build Status js-standard-style

Install

$ npm i -s serial-loop

Usage

var loop = require('serial-loop')

loop(10, each, function (error) {
  console.log('done, error? ', error)
});

function each (next, i) {
  setTimeout(function () {
    console.log(i)
    next()
  }, 1000)
}

Will output:

0
1
2
3
3
4
5
6
7
8
9

Roadmap

// 3.0 - Take over package, Update in es5 using standardjs
// 4.0 - Update to es6 , make it dynamic to not need len.

Current Tags

  • 3.0.0                                ...           latest (10 years ago)

5 Versions

  • 3.0.0                                ...           10 years ago
  • 0.0.1-security                                ...           11 years ago
  • 2.0.0                                ...           11 years ago
  • 0.0.1                                ...           13 years ago
  • 0.0.0                                ...           13 years ago
Maintainers (1)
Downloads
Total 8
Today 0
This Week 0
This Month 8
Last Day 0
Last Week 4
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE