1.0.3 • Published 8 years ago

node-series v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

node-series Build Status

Lightweight series function for node and browser

Installation

npm install node-series --save

Usage

var series = require('node-series');

series(function (next) {
  setTimeout(function () {
    console.log(1);
    next();
  }, 1000);
}, function (next) {
  setTimeout(function () {
    console.log(2);
    next();
  }, 1000);
}, function (next) {
  setTimeout(function () {
    console.log(3);
    next();
  }, 1000);
});

Supported browsers

IE8+