fn-sequence

1.0.2 • Public • Published

fn-sequence

Install

npm install fn-sequence

Usage

var sequence = require("fn-sequence");
sequence([
    function (value, next) {
        console.log(value); // 100
        next();
    },
    function (value, next) {
        next(null, value, "bar");
    },
    {
        foo: function (value, next) {
            next(null, "foo");
        },
        bar: function (value, next) {
            next(null, "bar");
        }
    }
], 100, function (err, val) {
    console.log(val); // "bar"
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i fn-sequence

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • zbinlin