{"_id":"fnqueue","_rev":"19-3df286abe3f3f1d8a6939fa1ced17865","name":"fnqueue","description":"A powerful utility for function chaining","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.2":{"name":"fnqueue","main":"./lib/fnqueue.js","description":"A powerful utility for function chaining","version":"1.0.2","repository":{"type":"git","url":"git://github.com/kilianc/node-fnqueue.git"},"author":"","_npmJsonOpts":{"file":"/Users/kilian/.npm/fnqueue/1.0.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"fnqueue@1.0.2","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.30","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"ea20257e5f55b7e37667b0be40ea22cb68c38a48","tarball":"https://registry.npmjs.org/fnqueue/-/fnqueue-1.0.2.tgz","integrity":"sha512-MeF514ezZCajNKZKuVUUM211KmDICyspvh/AeoXrCwkEJB2LhEilhyR7qfer5PfWTGYjup6fsKqpqKC8wecrdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNQt3bC0LsrwIoKOnRRswc6goeThq1S/lUm3bYIqEFNgIhAPvwyBRhboSQ++NBaMEb9Z6kD2EcqzF1CCISZY43ahFj"}]},"maintainers":[{"name":"kilianc","email":"kilian.ciuffolo@gmail.com"}]},"1.0.3":{"name":"fnqueue","main":"./lib/fnqueue.js","description":"A powerful utility for function chaining","version":"1.0.3","repository":{"type":"git","url":"git://github.com/kilianc/node-fnqueue.git"},"author":"","_npmUser":{"name":"kilianc","email":"kilian.ciuffolo@gmail.com"},"_id":"fnqueue@1.0.3","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.99","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"c16ff89d605c635da6db5b06fe08b9f68d138e82","tarball":"https://registry.npmjs.org/fnqueue/-/fnqueue-1.0.3.tgz","integrity":"sha512-9cV6tb9wo57FbR+Ydw5RsfhIBChfpkjGUwkQg/HNBHiqPG5R9CybYmO3CFSyhfmLazgevSrYZFz6sHzu3bgBBQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDe7sSTla2ersmT3ud3TQEoLQG/3ZLZJFlDHmAiLogD1AiEAuDEVbOSG2r9tDozDLnsjEWSgJm6osKhrOd7uAFgkuFg="}]},"maintainers":[{"name":"kilianc","email":"kilian.ciuffolo@gmail.com"}]},"1.0.4":{"name":"fnqueue","main":"./lib/fnqueue.js","description":"A powerful utility for function chaining","version":"1.0.4","repository":{"type":"git","url":"git://github.com/kilianc/node-fnqueue.git"},"author":"","_npmUser":{"name":"kilianc","email":"kilian.ciuffolo@gmail.com"},"_id":"fnqueue@1.0.4","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.99","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"5ab66be5c1a6715e23acee2f58764f7df816b2ae","tarball":"https://registry.npmjs.org/fnqueue/-/fnqueue-1.0.4.tgz","integrity":"sha512-bYtwe1eL2rXZHSWZDYVXYxAV/dkFeeSlnCqW6/Ss12+3nMk3IBk4HCEp1W9IA7pDmxJYcVkfm1vaOfKuQ6BlNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCBtidZZSZ87Sl+8G0nmI7Pw/FTBdSStH0cfxMmCZP62QIhAJMNa19OFgNA3SyMHj12vMzvxqHY8q3vVNN7FlytAnUj"}]},"maintainers":[{"name":"kilianc","email":"kilian.ciuffolo@gmail.com"}]},"1.0.5":{"author":{"name":"Kilian Ciuffolo","email":"me@nailik.org","url":"http://nailik.org"},"name":"fnqueue","main":"./lib/fnqueue.js","description":"A powerful utility for function chaining","version":"1.0.5","engines":{"node":">= v0.4.7"},"scripts":{"test":"vows test/*-test.js --spec"},"repository":{"type":"git","url":"git://github.com/kilianc/node-fnqueue.git"},"devDependencies":{"vows":"0.5.x >=0.5.10"},"_npmUser":{"name":"kilianc","email":"kilian.ciuffolo@gmail.com"},"_id":"fnqueue@1.0.5","dependencies":{},"_engineSupported":true,"_npmVersion":"1.0.99","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"01d8eb17c9f1e4394d23c9bfd951c199635d6d0c","tarball":"https://registry.npmjs.org/fnqueue/-/fnqueue-1.0.5.tgz","integrity":"sha512-F2HbGDPYjl+HCeB1xd0wMKTaboOhqUBgBa3r+JjUIKHvIpPhiGBs1diyrQrnBhjEGK1d8qbSFbSFufa0ZjZKEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMw151mzJ0me+8Wq5Z2rz4WJTJH1fBX5vEl7EDcErSkwIgP7dFJfPvy3+dS/CpOSdYja4Wy0rIwFXcMc8vl4h+ExU="}]},"maintainers":[{"name":"kilianc","email":"kilian.ciuffolo@gmail.com"}]},"2.0.0":{"author":{"name":"Kilian Ciuffolo","email":"me@nailik.org","url":"http://nailik.org"},"name":"fnqueue","main":"./lib/fnqueue.js","description":"A powerful utility for function chaining","version":"2.0.0","engines":{"node":">= v0.4.7"},"scripts":{"test":"vows test/*-test.js --spec"},"repository":{"type":"git","url":"git://github.com/kilianc/node-fnqueue.git"},"devDependencies":{"vows":"0.5.x >= 0.5.13"},"_npmUser":{"name":"kilianc","email":"kilian.ciuffolo@gmail.com"},"_id":"fnqueue@2.0.0","dependencies":{},"_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.1","_defaultsLoaded":true,"dist":{"shasum":"3a0a1faf225a9a1a91daf70fd4dc92f69040a0ea","tarball":"https://registry.npmjs.org/fnqueue/-/fnqueue-2.0.0.tgz","integrity":"sha512-0BEBxuEKdHK4LNA4p1GsxmFmHB+IqHyXVtQsj4urfMqiKc51AlbZguEXBb7NQDkIfl1BYHFdhOYsLWXOFhnceg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7LZ3Yzlexn+42ET69v/jJ8fRlxIphLTLGJ7rSBvnoMAIgdLaUDED5XwNEb0youC4ohkSIT8TfTlaSIPdUPCEufMg="}]},"maintainers":[{"name":"kilianc","email":"kilian.ciuffolo@gmail.com"}]},"2.0.1":{"author":{"name":"Kilian Ciuffolo","email":"me@nailik.org","url":"http://nailik.org"},"name":"fnqueue","main":"./lib/fnqueue.js","description":"A powerful utility for function chaining","keywords":["async","queue","promise","flow","parallel","chain"],"version":"2.0.1","engines":{"node":">= v0.4.7"},"scripts":{"test":"vows test/*-test.js --spec"},"repository":{"type":"git","url":"git://github.com/kilianc/node-fnqueue.git"},"dependencies":{"introspect":"0.0.x"},"devDependencies":{"vows":"0.5.x >= 0.5.13"},"_npmUser":{"name":"kilianc","email":"kilian.ciuffolo@gmail.com"},"_id":"fnqueue@2.0.1","_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.1","_defaultsLoaded":true,"dist":{"shasum":"fdb40b1d5f22229655f2e95de505eeaddb7d06b4","tarball":"https://registry.npmjs.org/fnqueue/-/fnqueue-2.0.1.tgz","integrity":"sha512-KAC2f09U6mwZbHDZOxGocA+BW2mVAxfKSFSHGWo1DaKg6oPuu5SpGModX7XjQNPFoS+S8OOvGuV9lPOrsVZmKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDp+ZcyDVNk0fGWM7HmvVA3IwNWCJAMZ7knNrgADdpSLwIhAJSpofd8VggpZgHqHWGJa+IhvicjiY/L624tXu3YJRVU"}]},"maintainers":[{"name":"kilianc","email":"kilian.ciuffolo@gmail.com"}]},"2.0.2":{"author":{"name":"Kilian Ciuffolo","email":"me@nailik.org","url":"http://nailik.org"},"name":"fnqueue","main":"./lib/fnqueue.js","description":"A powerful utility for function chaining","keywords":["async","queue","promise","flow","parallel","chain"],"version":"2.0.2","engines":{"node":">= v0.4.7"},"scripts":{"test":"vows test/*-test.js --spec"},"repository":{"type":"git","url":"git://github.com/kilianc/node-fnqueue.git"},"dependencies":{"introspect":"0.0.x"},"devDependencies":{"vows":"0.5.x >= 0.5.13"},"_npmUser":{"name":"kilianc","email":"kilian.ciuffolo@gmail.com"},"_id":"fnqueue@2.0.2","_engineSupported":true,"_npmVersion":"1.1.0-beta-4","_nodeVersion":"v0.6.6","_defaultsLoaded":true,"dist":{"shasum":"e530929f954f59efc4355568b05017aa748a36b7","tarball":"https://registry.npmjs.org/fnqueue/-/fnqueue-2.0.2.tgz","integrity":"sha512-d4PFp6RoWYbWDQ7daGnqYytPAFCNSfatZypP3JDLm1YMJbgONdHDV0SdbJTDFbTbjDv5LVPN5NPnG0/3qtm8aA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDhSqrTaEi8z4+BmnfgFtQzntqjN1CkFUnvKWnHAg5GEQIhAKM6sywEKAv7WcsWDq0HhLWH1j3CNPrrMuRCtpq8LQDr"}]},"maintainers":[{"name":"kilianc","email":"kilian.ciuffolo@gmail.com"}]}},"maintainers":[{"email":"me@nailik.org","name":"kilianc"}],"time":{"modified":"2022-06-18T02:41:14.080Z","created":"2011-10-15T11:23:39.872Z","1.0.2":"2011-10-15T11:23:41.876Z","1.0.3":"2011-10-15T23:54:03.852Z","1.0.4":"2011-10-29T12:50:09.018Z","1.0.5":"2011-10-30T22:31:29.335Z","2.0.0":"2011-11-18T18:46:02.426Z","2.0.1":"2011-11-23T11:54:52.376Z","2.0.2":"2012-01-19T11:49:58.042Z"},"repository":{"type":"git","url":"git://github.com/kilianc/node-fnqueue.git"},"author":{"name":"Kilian Ciuffolo","email":"me@nailik.org","url":"http://nailik.org"},"readme":"# node-fnqueue ![project status](http://dl.dropbox.com/u/2208502/maintained.png)\n\nA powerful utility for function chaining (inspired by [async](https://github.com/caolan/async)).\n\n## Engine\n\n- nodejs v0.4.12+ (tested with v0.6.x)\n\n## Installation with npm\n\n    $ npm install fnqueue\n\n## Syntax\n\n```javascript\nnew FnQueue(functionsList[, callback, concurrencyLevel, isStopped]);\n```\n##Parameters\n\n1. `functionsList` __(Object)__ a list of Functions. Each function can declare implicit dependencies as arguments and assume you provide a single callback as the last argument.\n2. `callback` __(Function(err, data))__ the complete callback in the conventional form of `function (err, data) { ... }`\n3. `concurrencyLevel` __(Number/String: defaults to 'auto')__ the concurrency level of the chain execution, can be `'auto'` or `N* = { 1, 2, ... }`\n4. `isStopped` __(Boolean: defaults to false)__ if true you must call the start method in order to execute the function list.\n\n##Methods\n\n* __start__: will start the execution, used in combination with `isStopped = true` constructor parameter\n\n##Attributes\n\n* __isVerbose__ _(Boolean)_: will change the instance verbose mode\n\n##Notes\n\nFnQueue runs a list of functions, each passing their results to the dependent function in the list. However, if any of the functions pass an error to the callback, the next function is not executed and the main callback is immediately called with the error.\n\nEach dependency/argument must be named with the label of the dependent function in the `functionsList` (the first constructor argument).\nEach function with a dependency will be called with the result of the dependent function as expected. __(Introspection by [introspect](https://github.com/kilianc/introspect))__\n\nThe global callback is called once, on the first error or at the end of the execution. A data object will be provided with the indexed result of the functions.\n\nFnQueue magically resolves all dependencies and executes functions in the right order with the provided concurrency level.\n\n##Example\n\n```javascript\nvar FnQueue = require('fnqueue');\n```\nor for a verbose mode:\n\n```javascript\nvar FnQueue = require('fnqueue').verbose();\n```\nExample:\n\n```javascript\nnew FnQueue({\n  // this will wait for 'processSomething' and 'searchSomething' and will be called with the respective results\n  funnyStuff: function (processSomething, searchSomething, callback) {\n    // do something silly\n    callback(null, 'ciao!');\n  },\n  // this will be called instantly\n  searchSomething: function (callback) {\n    // do something with database\n    callback(err, results);\n  },\n  // this will wait 'searchSomething'\n  update: function (searchSomething, callback) {\n    // change values inside results and save to db\n    callback(err); // no needs to return values\n  },\n  // this will wait 'searchSomething'\n  processSomething: function (searchSomething, callback) {\n    var start = new Date().getTime();\n    // do something slow\n    var elapsedTime = new Date().getTime() - start;\n    callback(err, elapsedTime);\n  }]\n}, function (err, data) {\n\n  if (err) {\n    throw err;\n  }\n\n  console.log(data.searchSomething);  // results\n  console.log(data.update);           // undefined\n  console.log(data.processSomething); // elapsedTime\n  console.log(data.funnyStuff);       // 'ciao!'\n}, 1);\n```\n\n## Test\n\nTests depends on http://vowsjs.org/ then\n\n    npm install -g vows\n    npm install\n    npm test\n\n![tests](http://f.cl.ly/items/03432M3A0l0r3M142B2w/fnqueue_test_v2.0.2.png)\n\n## License\n\n_This software is released under the MIT license cited below_.\n\n    Copyright (c) 2010 Kilian Ciuffolo, me@nailik.org. All Rights Reserved.\n\n    Permission is hereby granted, free of charge, to any person\n    obtaining a copy of this software and associated documentation\n    files (the 'Software'), to deal in the Software without\n    restriction, including without limitation the rights to use,\n    copy, modify, merge, publish, distribute, sublicense, and/or sell\n    copies of the Software, and to permit persons to whom the\n    Software is furnished to do so, subject to the following\n    conditions:\n    \n    The above copyright notice and this permission notice shall be\n    included in all copies or substantial portions of the Software.\n    \n    THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\n    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\n    OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n    NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n    HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n    WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n    OTHER DEALINGS IN THE SOFTWARE.","readmeFilename":"","keywords":["async","queue","promise","flow","parallel","chain"]}