Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zbinlin/fn-sequence

function array sequence
https://github.com/zbinlin/fn-sequence

Last synced: 4 days ago
JSON representation

function array sequence

Awesome Lists containing this project

README

        

# fn-sequence

## Install

```
npm install fn-sequence
```

## Usage

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