{"_id":"run-waterfall","_rev":"410199","name":"run-waterfall","description":"Run an array of functions in series, each passing its results to the next function (waterfall)","dist-tags":{"latest":"1.1.7"},"maintainers":[{"name":"feross","email":""}],"time":{"modified":"2021-08-04T05:05:42.000Z","created":"2014-04-29T10:15:59.827Z","1.1.7":"2020-10-27T03:41:59.797Z","1.1.6":"2018-04-26T01:08:10.329Z","1.1.5":"2018-04-26T01:04:05.751Z","1.1.4":"2018-03-17T11:36:24.762Z","1.1.3":"2015-09-22T20:56:37.798Z","1.1.2":"2015-06-24T07:44:47.919Z","1.1.1":"2015-05-05T00:52:21.067Z","1.1.0":"2015-03-19T23:56:57.887Z","1.0.2":"2014-04-29T10:23:58.116Z","1.0.1":"2014-04-29T10:18:37.533Z","1.0.0":"2014-04-29T10:15:59.827Z"},"users":{"feross":true,"bret":true,"nak2k":true},"author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"https://feross.org"},"repository":{"type":"git","url":"git://github.com/feross/run-waterfall.git"},"versions":{"1.1.7":{"name":"run-waterfall","description":"Run an array of functions in series, each passing its results to the next function (waterfall)","version":"1.1.7","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"https://feross.org"},"bugs":{"url":"https://github.com/feross/run-waterfall/issues"},"dependencies":{},"devDependencies":{"airtap":"^3.0.0","standard":"*","tape":"^5.0.1"},"homepage":"https://github.com/feross/run-waterfall","keywords":["waterfall","series","async","function","callback","asynchronous","run","array","run waterfall"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/run-waterfall.git"},"scripts":{"test":"standard && npm run test-node && npm run test-browser","test-browser":"airtap -- test/*.js","test-browser-local":"airtap --local -- test/*.js","test-node":"tape test/*.js"},"funding":[{"type":"github","url":"https://github.com/sponsors/feross"},{"type":"patreon","url":"https://www.patreon.com/feross"},{"type":"consulting","url":"https://feross.org/support"}],"gitHead":"828cd340b9caa913fdd7592695c1b2777a1c5a86","_id":"run-waterfall@1.1.7","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"shasum":"ae368b549b2f5171f86c2924492cab3352a6e9c5","size":2699,"noattachment":false,"key":"/run-waterfall/-/run-waterfall-1.1.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/run-waterfall/download/run-waterfall-1.1.7.tgz"},"maintainers":[{"name":"feross","email":""}],"_npmUser":{"name":"feross","email":"feross@feross.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/run-waterfall_1.1.7_1603770119632_0.8349885352767126"},"_hasShrinkwrap":false,"publish_time":1603770119797,"_cnpm_publish_time":1603770119797},"1.1.6":{"name":"run-waterfall","description":"Run an array of functions in series, each passing its results to the next function (waterfall)","version":"1.1.6","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"http://feross.org/"},"bugs":{"url":"https://github.com/feross/run-waterfall/issues"},"dependencies":{},"devDependencies":{"airtap":"0.0.4","standard":"*","tape":"^4.0.0"},"homepage":"https://github.com/feross/run-waterfall","keywords":["waterfall","series","async","function","callback","asynchronous","run","array","run waterfall"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/run-waterfall.git"},"scripts":{"test":"standard && npm run test-node && npm run test-browser","test-browser":"airtap -- test/*.js","test-browser-local":"airtap --local -- test/*.js","test-node":"tape test/*.js"},"gitHead":"2099540c779b98009a06a4e1e091299442b86d8e","_id":"run-waterfall@1.1.6","_npmVersion":"6.0.0","_nodeVersion":"8.11.1","_npmUser":{"name":"feross","email":"feross@feross.org"},"dist":{"shasum":"3aebfeb60155539bf1ff4a30b66706ae77df9f74","size":2608,"noattachment":false,"key":"/run-waterfall/-/run-waterfall-1.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/run-waterfall/download/run-waterfall-1.1.6.tgz"},"maintainers":[{"name":"feross","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/run-waterfall_1.1.6_1524704890258_0.5055580850900032"},"_hasShrinkwrap":false,"publish_time":1524704890329,"_cnpm_publish_time":1524704890329},"1.1.5":{"name":"run-waterfall","description":"Run an array of functions in series, each passing its results to the next function (waterfall)","version":"1.1.5","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"http://feross.org/"},"bugs":{"url":"https://github.com/feross/run-waterfall/issues"},"dependencies":{},"devDependencies":{"airtap":"0.0.4","standard":"*","tape":"^4.0.0"},"homepage":"https://github.com/feross/run-waterfall","keywords":["waterfall","series","async","function","callback","asynchronous","run","array","run waterfall"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/run-waterfall.git"},"scripts":{"test":"standard && npm run test-node && npm run test-browser","test-browser":"airtap -- test/*.js","test-browser-local":"airtap --local -- test/*.js","test-node":"tape test/*.js"},"gitHead":"a827f0a5c2bdb340ab666e0e55579b55fdf98489","_id":"run-waterfall@1.1.5","_npmVersion":"6.0.0","_nodeVersion":"8.11.1","_npmUser":{"name":"feross","email":"feross@feross.org"},"dist":{"shasum":"5f762059fc8993671952cb477d1433222824a33d","size":2600,"noattachment":false,"key":"/run-waterfall/-/run-waterfall-1.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/run-waterfall/download/run-waterfall-1.1.5.tgz"},"maintainers":[{"name":"feross","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/run-waterfall_1.1.5_1524704645634_0.35616347522538994"},"_hasShrinkwrap":false,"publish_time":1524704645751,"_cnpm_publish_time":1524704645751},"1.1.4":{"name":"run-waterfall","description":"Run an array of functions in series, each passing its results to the next function (waterfall)","version":"1.1.4","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"http://feross.org/"},"bugs":{"url":"https://github.com/feross/run-waterfall/issues"},"dependencies":{},"devDependencies":{"airtap":"0.0.4","standard":"*","tape":"^4.0.0"},"homepage":"https://github.com/feross/run-waterfall","keywords":["waterfall","series","async","function","callback","asynchronous","run","array","run waterfall"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/run-waterfall.git"},"scripts":{"test":"standard && npm run test-node && npm run test-browser","test-browser":"airtap -- test/*.js","test-browser-local":"airtap --local -- test/*.js","test-node":"tape test/*.js"},"gitHead":"4cfb938bb0b3aca45d466ed8acb6a8df3136954f","_id":"run-waterfall@1.1.4","_npmVersion":"5.7.1","_nodeVersion":"8.10.0","_npmUser":{"name":"feross","email":"feross@feross.org"},"dist":{"shasum":"810e531b57b41633665fc622ca5225eb90cc4c9e","size":3081,"noattachment":false,"key":"/run-waterfall/-/run-waterfall-1.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/run-waterfall/download/run-waterfall-1.1.4.tgz"},"maintainers":[{"name":"feross","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/run-waterfall_1.1.4_1521286584698_0.26527204330659404"},"_hasShrinkwrap":false,"publish_time":1521286584762,"_cnpm_publish_time":1521286584762},"1.1.3":{"name":"run-waterfall","description":"Run an array of functions in series, each passing its results to the next function (waterfall)","version":"1.1.3","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"http://feross.org/"},"bugs":{"url":"https://github.com/feross/run-waterfall/issues"},"dependencies":{},"devDependencies":{"standard":"^5.3.1","tape":"^4.0.0","zuul":"^3.1.0"},"homepage":"https://github.com/feross/run-waterfall","keywords":["waterfall","series","async","function","callback","asynchronous","run","array","run waterfall"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/run-waterfall.git"},"scripts":{"test":"standard && npm run test-node && npm run test-browser","test-browser":"zuul -- test/*.js","test-browser-local":"zuul --local -- test/*.js","test-node":"tape test/*.js"},"gitHead":"2c4268a306d0518943b96938495637a11cf628a1","_id":"run-waterfall@1.1.3","_shasum":"d96fc0f5361bcbdbd438529dc8a4b42fc6761123","_from":".","_npmVersion":"2.14.3","_nodeVersion":"4.1.0","_npmUser":{"name":"feross","email":"feross@feross.org"},"dist":{"shasum":"d96fc0f5361bcbdbd438529dc8a4b42fc6761123","size":9054,"noattachment":false,"key":"/run-waterfall/-/run-waterfall-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/run-waterfall/download/run-waterfall-1.1.3.tgz"},"maintainers":[{"name":"feross","email":""}],"directories":{},"publish_time":1442955397798,"_cnpm_publish_time":1442955397798,"_hasShrinkwrap":false},"1.1.2":{"name":"run-waterfall","description":"Run an array of functions in series, each passing its results to the next function (waterfall)","version":"1.1.2","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"http://feross.org/"},"bugs":{"url":"https://github.com/feross/run-waterfall/issues"},"dependencies":{"dezalgo":"^1.0.1"},"devDependencies":{"standard":"^4.3.2","tape":"^4.0.0","zuul":"^3.1.0"},"homepage":"https://github.com/feross/run-waterfall","keywords":["waterfall","series","async","function","callback","asynchronous","run","array","run waterfall"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/run-waterfall.git"},"scripts":{"test":"standard && npm run test-node && npm run test-browser","test-browser":"zuul -- test/*.js","test-browser-local":"zuul --local -- test/*.js","test-node":"tape test/*.js"},"gitHead":"a09cba022e467304149c4adce1d829083af605ff","_id":"run-waterfall@1.1.2","_shasum":"e834527e3ce2e696abab29781ebd0beff4612143","_from":".","_npmVersion":"2.11.3","_nodeVersion":"2.3.1","_npmUser":{"name":"feross","email":"feross@feross.org"},"maintainers":[{"name":"feross","email":""}],"dist":{"shasum":"e834527e3ce2e696abab29781ebd0beff4612143","size":8974,"noattachment":false,"key":"/run-waterfall/-/run-waterfall-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/run-waterfall/download/run-waterfall-1.1.2.tgz"},"directories":{},"publish_time":1435131887919,"_cnpm_publish_time":1435131887919,"_hasShrinkwrap":false},"1.1.1":{"name":"run-waterfall","description":"Run an array of functions in series, each passing its results to the next function (waterfall)","version":"1.1.1","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"http://feross.org/"},"bugs":{"url":"https://github.com/feross/run-waterfall/issues"},"dependencies":{"dezalgo":"^1.0.1"},"devDependencies":{"standard":"^3.2.0","tape":"^4.0.0"},"homepage":"https://github.com/feross/run-waterfall","keywords":["waterfall","series","async","function","callback","asynchronous","run","array","run waterfall"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/run-waterfall.git"},"scripts":{"test":"standard && tape test/*.js"},"testling":{"files":"test/*.js","browsers":["ie/9..latest","chrome/25..latest","chrome/canary","firefox/20..latest","firefox/nightly","safari/6..latest","opera/12..latest","opera/next","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"7beaaf9a051d2550315d9d5d8628eb5f4f276a38","_id":"run-waterfall@1.1.1","_shasum":"81e503a5b29e7f49d3a750f927c24afea889fbd3","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"feross","email":"feross@feross.org"},"maintainers":[{"name":"feross","email":""}],"dist":{"shasum":"81e503a5b29e7f49d3a750f927c24afea889fbd3","size":8501,"noattachment":false,"key":"/run-waterfall/-/run-waterfall-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/run-waterfall/download/run-waterfall-1.1.1.tgz"},"directories":{},"publish_time":1430787141067,"_cnpm_publish_time":1430787141067,"_hasShrinkwrap":false},"1.1.0":{"name":"run-waterfall","description":"Run an array of functions in series, each passing its results to the next function (waterfall)","version":"1.1.0","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"http://feross.org/"},"bugs":{"url":"https://github.com/feross/run-waterfall/issues"},"dependencies":{"dezalgo":"^1.0.1"},"devDependencies":{"standard":"^3.2.0","tape":"^3.5.0"},"homepage":"https://github.com/feross/run-waterfall","keywords":["waterfall","series","async","function","callback","asynchronous","run","array","run waterfall"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/run-waterfall.git"},"scripts":{"test":"standard && tape test/*.js"},"testling":{"files":"test/*.js","browsers":["ie/9..latest","chrome/25..latest","chrome/canary","firefox/20..latest","firefox/nightly","safari/6..latest","opera/12..latest","opera/next","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"b2c859d4b700d3a4579e6557889818e171a061e2","_id":"run-waterfall@1.1.0","_shasum":"8a7b74441b015e96c1b49999e56f5f8b40d5b81c","_from":".","_npmVersion":"2.7.0","_nodeVersion":"1.5.1","_npmUser":{"name":"feross","email":"feross@feross.org"},"maintainers":[{"name":"feross","email":""}],"dist":{"shasum":"8a7b74441b015e96c1b49999e56f5f8b40d5b81c","size":8494,"noattachment":false,"key":"/run-waterfall/-/run-waterfall-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/run-waterfall/download/run-waterfall-1.1.0.tgz"},"directories":{},"publish_time":1426809417887,"_cnpm_publish_time":1426809417887,"_hasShrinkwrap":false},"1.0.2":{"name":"run-waterfall","description":"Run an array of functions in series, each passing its results to the next function (waterfall)","version":"1.0.2","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"http://feross.org/"},"bugs":{"url":"https://github.com/feross/run-waterfall/issues"},"dependencies":{},"devDependencies":{"tape":"^2.12.3"},"homepage":"https://github.com/feross/run-waterfall","keywords":["waterfall","series","async","function","callback","asynchronous","run","array","run waterfall"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/run-waterfall.git"},"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":["ie/9..latest","chrome/25..latest","chrome/canary","firefox/20..latest","firefox/nightly","safari/6..latest","opera/12..latest","opera/next","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"_id":"run-waterfall@1.0.2","dist":{"shasum":"0994969a15f73b6f13232ad7c5acd9ef3c37a6cd","size":8425,"noattachment":false,"key":"/run-waterfall/-/run-waterfall-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/run-waterfall/download/run-waterfall-1.0.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"feross","email":"feross@feross.org"},"maintainers":[{"name":"feross","email":""}],"directories":{},"publish_time":1398767038116,"_cnpm_publish_time":1398767038116,"_hasShrinkwrap":false},"1.0.1":{"name":"run-waterfall","description":"Run an array of functions in series, each passing their results to the next in the array (waterfall)","version":"1.0.1","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"http://feross.org/"},"bugs":{"url":"https://github.com/feross/run-waterfall/issues"},"dependencies":{},"devDependencies":{"tape":"^2.12.3"},"homepage":"https://github.com/feross/run-waterfall","keywords":["waterfall","series","async","function","callback","asynchronous","run","array","run waterfall"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/run-waterfall.git"},"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":["ie/9..latest","chrome/25..latest","chrome/canary","firefox/20..latest","firefox/nightly","safari/6..latest","opera/12..latest","opera/next","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"_id":"run-waterfall@1.0.1","dist":{"shasum":"bb0c9df276f5d120a4d9cafd5858e8747ac6d281","size":8421,"noattachment":false,"key":"/run-waterfall/-/run-waterfall-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/run-waterfall/download/run-waterfall-1.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"feross","email":"feross@feross.org"},"maintainers":[{"name":"feross","email":""}],"directories":{},"publish_time":1398766717533,"_cnpm_publish_time":1398766717533,"_hasShrinkwrap":false},"1.0.0":{"name":"run-waterfall","description":"Run an array of functions in series, each passing their results to the next in the array (waterfall)","version":"1.0.0","author":{"name":"Feross Aboukhadijeh","email":"feross@feross.org","url":"http://feross.org/"},"bugs":{"url":"https://github.com/feross/run-waterfall/issues"},"dependencies":{},"devDependencies":{"tape":"^2.12.3"},"homepage":"https://github.com/feross/run-waterfall","keywords":["waterfall","series","async","function","callback","asynchronous","run","array","run waterfall"],"license":"MIT","main":"index.js","repository":{"type":"git","url":"git://github.com/feross/run-waterfall.git"},"scripts":{"test":"tape test/*.js"},"testling":{"files":"test/*.js","browsers":["ie/9..latest","chrome/25..latest","chrome/canary","firefox/20..latest","firefox/nightly","safari/6..latest","opera/12..latest","opera/next","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"_id":"run-waterfall@1.0.0","dist":{"shasum":"2e82828f76651d49a9c23a5e5b42d71c7b244ba1","size":8419,"noattachment":false,"key":"/run-waterfall/-/run-waterfall-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/run-waterfall/download/run-waterfall-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"feross","email":"feross@feross.org"},"maintainers":[{"name":"feross","email":""}],"directories":{},"publish_time":1398766559827,"_cnpm_publish_time":1398766559827,"_hasShrinkwrap":false}},"readme":"# run-waterfall [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]\n\n[travis-image]: https://img.shields.io/travis/feross/run-waterfall/master.svg\n[travis-url]: https://travis-ci.org/feross/run-waterfall\n[npm-image]: https://img.shields.io/npm/v/run-waterfall.svg\n[npm-url]: https://npmjs.org/package/run-waterfall\n[downloads-image]: https://img.shields.io/npm/dm/run-waterfall.svg\n[downloads-url]: https://npmjs.org/package/run-waterfall\n[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg\n[standard-url]: https://standardjs.com\n\n### Run an array of functions in series, **each passing its results to the next function**\n\n![waterfall](https://raw.githubusercontent.com/feross/run-waterfall/master/img.png) [![Sauce Test Status](https://saucelabs.com/browser-matrix/run-waterfall.svg)](https://saucelabs.com/u/run-waterfall)\n\n### install\n\n```\nnpm install run-waterfall\n```\n\n### usage\n\n#### waterfall(tasks, [callback])\n\nRuns the `tasks` array of functions in series, **each passing their results to the next in\nthe array**. However, if any of the `tasks` pass an error to their own callback, the next\nfunction is not executed, and the main `callback` is immediately called with the error.\n\n##### arguments\n\n- `tasks` - An array of functions to run, each function is passed a\n`callback(err, result1, result2, ...)` it must call on completion. The first argument is\nan error (which can be `null`) and any further arguments will be passed as arguments in\norder to the next task.\n- `callback(err, [results])` - An optional callback to run once all the functions have\ncompleted. This will be passed the results of the last task's callback.\n\n##### example\n\n```js\nvar waterfall = require('run-waterfall')\n\nwaterfall([\n  function (callback) {\n    callback(null, 'one', 'two')\n  },\n  function (arg1, arg2, callback) {\n    // arg1 now equals 'one' and arg2 now equals 'two'\n    callback(null, 'three')\n  },\n  function (arg1, callback) {\n    // arg1 now equals 'three'\n    callback(null, 'done', 'wohoo')\n  }\n], function (err, result1, result2) {\n   // result1 now equals 'done'\n   // result2 now equals 'wohoo'\n})\n```\n\nThis module is basically equavalent to\n[`async.waterfall`](https://github.com/caolan/async#waterfalltasks-callback), but it's\nhandy to just have the functions you need instead of the kitchen sink. Modularity!\nEspecially handy if you're serving to the browser and need to reduce your javascript\nbundle size.\n\nWorks great in the browser with [browserify](http://browserify.org/)!\n\n### see also\n\n- [run-auto](https://github.com/feross/run-auto)\n- [run-parallel](https://github.com/feross/run-parallel)\n- [run-parallel-limit](https://github.com/feross/run-parallel-limit)\n- [run-series](https://github.com/feross/run-series)\n\n### license\n\nMIT. Copyright (c) [Feross Aboukhadijeh](http://feross.org).\n\nImage credit: Waterfall designed by Luis Prado\n","_attachments":{},"homepage":"https://github.com/feross/run-waterfall","bugs":{"url":"https://github.com/feross/run-waterfall/issues"},"license":"MIT"}