{"_id":"promise-waterfall","_rev":"11-a83ec20c1ca6b40d518b80f6f731d8e8","name":"promise-waterfall","description":"promise-waterfall extends promise utilities with sequential flow control like async.waterfall","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.0":{"name":"promise-waterfall","version":"0.0.0","repository":{"type":"git","url":"https://github.com/dotSlashLu/promise-waterfall.git"},"description":"promise-waterfall extends promise utilities with sequential flow control like async.waterfall","main":"index.js","scripts":{"test":"make test"},"keywords":["promise","async","flow control"],"devDependencies":{"q":"^1.0.1","bluebird":"^2.3.6","mocha":"~1.8.1","chai":"~1.5.0"},"author":{"name":"dotslash.lu"},"license":"MIT","dependencies":{},"bugs":{"url":"https://github.com/dotSlashLu/promise-waterfall/issues"},"homepage":"https://github.com/dotSlashLu/promise-waterfall","_id":"promise-waterfall@0.0.0","_shasum":"ef82ccbbed3a271ca479a27677b9b538eaea2664","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"dotslash.lu","email":"dotslash.lu@gmail.com"},"maintainers":[{"name":"dotslash.lu","email":"dotslash.lu@gmail.com"}],"dist":{"shasum":"ef82ccbbed3a271ca479a27677b9b538eaea2664","tarball":"https://registry.npmjs.org/promise-waterfall/-/promise-waterfall-0.0.0.tgz","integrity":"sha512-DYUKAmKB3F187uhuDFHA9X7Lbs9NyHgomGifsluIAJtrUdZmiM+/ZavtJbbC8kPyQ1pjj1sRpwcK+mWI5FQIaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGjn20FyFUgTs1MEij/CY1QLKJItM4JtLPoMfl3nhbDCAiEAtG+di1Ppo4qcy+0AMGd5BxP8Jm6T8krrK75B/F2Vvb0="}]}},"0.0.1":{"name":"promise-waterfall","version":"0.0.1","repository":{"type":"git","url":"https://github.com/dotSlashLu/promise-waterfall.git"},"description":"promise-waterfall extends promise utilities with sequential flow control like async.waterfall","main":"index.js","scripts":{"test":"make test"},"keywords":["promise","async","flow control"],"devDependencies":{"q":"^1.0.1","bluebird":"^2.3.6","mocha":"~1.8.1","chai":"~1.5.0"},"author":{"name":"dotslash.lu"},"license":"MIT","dependencies":{},"gitHead":"aec76cc88cb06c05a0d0faa94f94e30bfcf8e869","bugs":{"url":"https://github.com/dotSlashLu/promise-waterfall/issues"},"homepage":"https://github.com/dotSlashLu/promise-waterfall","_id":"promise-waterfall@0.0.1","_shasum":"e4d8e13c9287256d0ded3e05dfb1ead1bce79ea8","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"dotslash.lu","email":"dotslash.lu@gmail.com"},"maintainers":[{"name":"dotslash.lu","email":"dotslash.lu@gmail.com"}],"dist":{"shasum":"e4d8e13c9287256d0ded3e05dfb1ead1bce79ea8","tarball":"https://registry.npmjs.org/promise-waterfall/-/promise-waterfall-0.0.1.tgz","integrity":"sha512-kSNHG9Q5mj8u8GjtIHZmNQA7C4eWM/pxDHU20zfsBgivK8MUUg8izXZphXm5AW8ftcoPG8DcRbp7uqjsYWbg6Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA4VRtXjH/+fDdvtsD3aBNSaSecD0pPW1QgMyky7KGSuAiBoL0d78pNdIuNTCmZ6NLqPkhENlUdpFzfhzAYsm5kg1w=="}]}},"0.1.0":{"name":"promise-waterfall","version":"0.1.0","repository":{"type":"git","url":"https://github.com/dotSlashLu/promise-waterfall.git"},"description":"promise-waterfall extends promise utilities with sequential flow control like async.waterfall","main":"index.js","scripts":{"test":"make test"},"keywords":["promise","async","flow control"],"devDependencies":{"q":"^1.0.1","bluebird":"^2.3.6","mocha":"~1.8.1","chai":"~1.5.0"},"author":{"name":"dotslash.lu"},"license":"MIT","dependencies":{"promise":"~6.0.1"},"gitHead":"ef09609a7ee9bbb0b4079f72e1a2c5c2be81873c","bugs":{"url":"https://github.com/dotSlashLu/promise-waterfall/issues"},"homepage":"https://github.com/dotSlashLu/promise-waterfall","_id":"promise-waterfall@0.1.0","_shasum":"95b06be8a97669e0365f84c8eb3eb227753513bf","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dotslash.lu","email":"dotslash.lu@gmail.com"},"maintainers":[{"name":"dotslash.lu","email":"dotslash.lu@gmail.com"}],"dist":{"shasum":"95b06be8a97669e0365f84c8eb3eb227753513bf","tarball":"https://registry.npmjs.org/promise-waterfall/-/promise-waterfall-0.1.0.tgz","integrity":"sha512-7X5N9Bt3Ed5cgJBWauAPaNR74RHs7TtI5hVn/e1bE/uV07VW/fxk6sp+2lhIg0HfUVwTaueoesUBQJxWgMKBgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2aWC207LKsCJ4Kpr+VwiU/Qtl3U5yCqIS912ViGsTDwIhAMun46IzlOw1j6CfB7SqjQF2CiMc5nqIuUV8FAd1+VeG"}]}}},"readme":"# Promise-waterfall\nPromise-waterfall extends promise utilities with sequential flow control like [async.waterfall](https://github.com/caolan/async#waterfalltasks-callback). \n\nSince `Promise.all(promiseArr)` || `Promise.spread(promiseArr)` execs promises simultaneously, each of the functions in the promiseArr cannot depend on another, and if you want promises execute in order or some of the promises need the resolved value of another, this library is for you.\n\n## Installation\n`npm install promise-waterfall`\n\n## Usage\n```javascript\nvar waterfall = require(\"promise-waterfall\");\nvar func1 = function(){\n        // return a promise\n    },\n    func2 = function(res1){\n        // optionally use res1 \n        // which is resolved from func1 \n        // and return a promise\n    },\n    func3 = function(res2){\n        // like func2\n    },\n    promiseSequence = [func1, func2, func3];\n    \nwaterfall(promiseSequence) \n    // the promiseSequence will executes sequentially\n    // just like func1().then(func2).then(func3)\n    .then(function(res){\n        // use res\n    })\n    .catch(function(err){\n        // deal with error\n    });\n```\nSee test cases in `/tests` for full examples.\n\n## Development\n\n### Test\nrun `npm test` or `make test`\n\n### Changelog\n* v0.1 (Thanks to @stevenvachon)\n    * Return a promise(fulfilled when returned normally or rejected when error occurs) in whatever condition;\n    * Compatible with all libraries conforming to Promises/A+ spec;\n    * Dropped client support\n* v0.0.1 \n    * First release\n\n### Thanks ","maintainers":[{"name":"dotslash.lu","email":"dotslash.lu@gmail.com"}],"time":{"modified":"2022-06-24T19:16:08.266Z","created":"2014-10-21T07:26:16.955Z","0.0.0":"2014-10-21T07:26:16.955Z","0.0.1":"2014-10-23T01:58:35.483Z","0.1.0":"2014-11-24T01:04:30.258Z"},"homepage":"https://github.com/dotSlashLu/promise-waterfall","keywords":["promise","async","flow control"],"repository":{"type":"git","url":"https://github.com/dotSlashLu/promise-waterfall.git"},"author":{"name":"dotslash.lu"},"bugs":{"url":"https://github.com/dotSlashLu/promise-waterfall/issues"},"license":"MIT","readmeFilename":"README.md","users":{"thierrymarianne":true}}