{"_id":"async-series","_rev":"136940","name":"async-series","description":"Run a series of callbacks in sequence.","dist-tags":{"latest":"0.0.1"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"time":{"modified":"2021-06-03T11:21:56.000Z","created":"2013-03-20T04:06:04.831Z","0.0.1":"2013-03-20T04:06:04.831Z"},"users":{"n370":true,"lexon":true,"suncn":true},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com/"},"repository":{"type":"git","url":"git://github.com/hughsk/async-series.git"},"versions":{"0.0.1":{"name":"async-series","version":"0.0.1","description":"Run a series of callbacks in sequence.","main":"index.js","dependencies":{},"devDependencies":{"tape":"~0.3.0"},"scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git://github.com/hughsk/async-series.git"},"keywords":["async","series","callbacks","flow","control"],"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughskennedy.com/"},"license":"MIT","_id":"async-series@0.0.1","dist":{"shasum":"5024d757f38b04296e1f8a1fca4a364b57dc52ec","size":2290,"noattachment":false,"key":"/async-series/-/async-series-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-series/download/async-series-0.0.1.tgz"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"directories":{},"publish_time":1363752364831,"_hasShrinkwrap":false,"_cnpm_publish_time":1363752364831}},"readme":"# async-series #\n\nRun a series of callbacks in sequence, as simply as possible.\n\nMore or less equivalent to\n[async.series](https://github.com/caolan/async#series) - solely\nfor the sake of keeping some modules tiny for\n[browserify](http://browserify.org/).\n\n## Installation ##\n\n``` bash\nnpm install async-series\n```\n\n## Usage ##\n\n**series(tasks, callback, safe)**\n\nWhere `tasks` is an array of functions, each with their own `done`\nargument. `callback` is called when finished. Setting `safe` to true\nwill ensure there's at least a tick between each task to prevent RangeErrors.\n\n``` javascript\nseries([\n  function(done) {\n    console.log('first thing')\n    done()\n  },\n  function(done) {\n    console.log('second thing')\n    done(new Error('another thing'))\n  },\n  function(done) {\n    // never happens, because \"second thing\"\n    // passed an error to the done() callback\n  }\n], function(err) {\n  console.log(err.message) // \"another thing\"\n})\n```\n","_attachments":{},"license":"MIT"}