iterator-promise
Iterate over a stack of functions.
This module works with loader-cache but it can also used by itself or with other modules.
Install
Install with npm
$ npm i iterator-promise --save
Usage
var iterator = ;
API
iterator
Iterate over a stack of promise functions passing the results of each function to the next function in the stack.
Params
stack
{Array}: Array of functions to call.returns
{Function}: Returns a function that will iterator over the given stack of functions.
var fs = ;var iterator = ;var Promise = ;Promise; var stack = Promisemethod { return fs; } Promisemethod { return JSON; }; var readJSON = ; ;
Related projects
- bluebird: Full featured Promises/A+ implementation with exceptionally good performance
- iterator-async: Iterate over a stack of async functions.
- iterator-streams: Iterator over a stack of functions.
- iterator-sync: Iterate over a stack of functions.
- loader-cache: Register loader functions that dynamically read, parse or otherwise transform file contents when the name… more
Running tests
Install dev dependencies:
$ npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Brian Woodward
License
Copyright © 2015 Brian Woodward Released under the MIT license.
This file was generated by verb-cli on June 19, 2015.