Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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"
});

Keywords

install

npm i fn-sequence

Downloadsweekly downloads

2

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar