Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zbinlin/fn-sequence
- Owner: zbinlin
- Created: 2015-06-19T04:06:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-19T04:53:11.000Z (over 9 years ago)
- Last Synced: 2024-01-03T00:16:04.033Z (11 months ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"
});
```