node-series

1.0.3 • Public • Published

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+

Readme

Keywords

Package Sidebar

Install

npm i node-series

Weekly Downloads

2

Version

1.0.3

License

MIT

Last publish

Collaborators

  • adjusted