{"_id":"qmap","_rev":"1745649","name":"qmap","description":"Async function map and queue","dist-tags":{"latest":"0.2.3"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"time":{"modified":"2026-11-19T14:25:39.000Z","created":"2014-02-25T16:08:30.396Z","0.2.3":"2014-03-10T21:46:04.847Z","0.2.2":"2014-03-10T21:30:06.169Z","0.2.1":"2014-03-06T19:53:49.784Z","0.2.0":"2014-03-06T03:10:20.503Z","0.1.0":"2014-03-06T02:47:00.069Z","0.0.1":"2014-02-25T16:08:30.396Z"},"users":{},"author":{"name":"Scott Corgan"},"repository":{"type":"git","url":"https://github.com/scottcorgan/qmap.git"},"versions":{"0.2.3":{"name":"qmap","version":"0.2.3","description":"Async function map and queue","main":"index.js","scripts":{"test":"mocha ./test"},"repository":{"type":"git","url":"https://github.com/scottcorgan/qmap.git"},"keywords":["async","queue","map","function"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/qmap/issues"},"homepage":"https://github.com/scottcorgan/qmap","dependencies":{"drainer":"0.2.x","lodash.isarguments":"2.4.x","flat-arguments":"0.3.x","as-array":"0.1.x"},"devDependencies":{"mocha":"1.17.x","expect.js":"0.3.x"},"_id":"qmap@0.2.3","dist":{"shasum":"b7844e8d4a832483a8207805c059e0bb8b2fff9c","tarball":"http://registry-npm.ywwl.com/qmap/download/qmap-0.2.3.tgz","integrity":"sha512-Cu1kG1To/wj17rvjQmg2DdPICfIGA8+JY/Wkv+L6QHsoRnWWCsk7Ty3j/cy1sSS9Rq7HJOPWiCGhAWx2DkVMow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+UXedEwt61gOhrfZURJreCqKkLlDn514DSxSXv+j8ngIgKwli4b1BQh1vt3G56IwCl5dq86Yv0mxxLtWKZpZF9Sk="}],"size":2295,"noattachment":false,"key":"/qmap/-/qmap-0.2.3.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1394487964847,"_cnpm_publish_time":1394487964847},"0.2.2":{"name":"qmap","version":"0.2.2","description":"Async function map and queue","main":"index.js","scripts":{"test":"mocha ./test"},"repository":{"type":"git","url":"https://github.com/scottcorgan/qmap.git"},"keywords":["async","queue","map","function"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/qmap/issues"},"homepage":"https://github.com/scottcorgan/qmap","dependencies":{"drainer":"0.2.x","lodash.isarguments":"2.4.x","flat-arguments":"0.3.x","as-array":"0.1.x"},"devDependencies":{"mocha":"1.17.x","expect.js":"0.3.x"},"_id":"qmap@0.2.2","dist":{"shasum":"d6c4c826a5258a214d5452763263a9da9c96b78c","tarball":"http://registry-npm.ywwl.com/qmap/download/qmap-0.2.2.tgz","integrity":"sha512-m0ErrjaYjrxHigk5caC5YpLoIhYR0AW1BEG4N15tgPG1F+fLPgyV2soCWcYS/sOg7DmemPNzxmV63SugOkSopA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCT4F54/yipmlcQji4U7n1ObjVcNbfL/Bz8B9F0JuRCjgIgeIgi/oC3cmN/5RxF3Z79ZNVvE9cs2QRHIGgAxRDiUvM="}],"size":2276,"noattachment":false,"key":"/qmap/-/qmap-0.2.2.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1394487006169,"_cnpm_publish_time":1394487006169},"0.2.1":{"name":"qmap","version":"0.2.1","description":"Async function map and queue","main":"index.js","scripts":{"test":"mocha ./test"},"repository":{"type":"git","url":"https://github.com/scottcorgan/qmap.git"},"keywords":["async","queue","map","function"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/qmap/issues"},"homepage":"https://github.com/scottcorgan/qmap","dependencies":{"drainer":"0.2.x","flatten":"0.0.x","lodash.isarguments":"2.4.x"},"devDependencies":{"mocha":"1.17.x","expect.js":"0.3.x"},"_id":"qmap@0.2.1","dist":{"shasum":"2e13ca6b10d78522ff44dcfe09c51929f0f9db7e","tarball":"http://registry-npm.ywwl.com/qmap/download/qmap-0.2.1.tgz","integrity":"sha512-1HyCeBfjU37O/LJRfx+a8asz1LMg/1Hcp0vVV8CRGCSZJNdUxpT7eswEPi4mfkYIV1tCXVvSSIwo2Qg1urLpIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+RSfQLskn9Nq7iWKoBLfEgAnNQuioRjcRDmKho6wtwwIhAJ3qz69N5STiDGEZGoAsRlBG2edrGp70aPu83UBnCtYK"}],"size":2305,"noattachment":false,"key":"/qmap/-/qmap-0.2.1.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1394135629784,"_cnpm_publish_time":1394135629784},"0.2.0":{"name":"qmap","version":"0.2.0","description":"Async function map and queue","main":"index.js","scripts":{"test":"mocha ./test"},"repository":{"type":"git","url":"https://github.com/scottcorgan/qmap.git"},"keywords":["async","queue","map","function"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/qmap/issues"},"homepage":"https://github.com/scottcorgan/qmap","dependencies":{"drainer":"0.2.x","flatten":"0.0.x"},"devDependencies":{"mocha":"1.17.x","expect.js":"0.3.x"},"_id":"qmap@0.2.0","dist":{"shasum":"e4b43ae95a10ab7f645b7b609e718413d4768f2d","tarball":"http://registry-npm.ywwl.com/qmap/download/qmap-0.2.0.tgz","integrity":"sha512-G5abpnpCBNc1avWMzejsZBCIJr/LfgNFCOCgScFICQOqewSSNVmtDWT+KFPOwMN0UQ0t8DC+Mzpy1kI+/Hv6gQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIAZiNiAeLFkyFYWCw0NV7Zqfyl8ihTEvtRYvvg/WcSQIhAI3qWH6BrlnAeEMoQCd669HKJRv9iJxQqECCid7PlAtq"}],"size":2278,"noattachment":false,"key":"/qmap/-/qmap-0.2.0.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1394075420503,"_cnpm_publish_time":1394075420503},"0.1.0":{"name":"qmap","version":"0.1.0","description":"Async function map and queue","main":"index.js","scripts":{"test":"mocha ./test"},"repository":{"type":"git","url":"https://github.com/scottcorgan/qmap.git"},"keywords":["async","queue","map","function"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/qmap/issues"},"homepage":"https://github.com/scottcorgan/qmap","dependencies":{"drainer":"0.2.x","flatten":"0.0.x"},"devDependencies":{"mocha":"1.17.x","expect.js":"0.3.x"},"_id":"qmap@0.1.0","dist":{"shasum":"332404b3c8ddcebb3ada0bf85850c8a980019aff","tarball":"http://registry-npm.ywwl.com/qmap/download/qmap-0.1.0.tgz","integrity":"sha512-paySZxKs2amSuORJTo1UDucKBjglMYSnOeaxVpPg1vwKwks+QsA3UHWnSnyRsXFI0qsXJc5XRS3AD0QZZsfv4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+Tl6B6lThmwIGXi8N76XyoRDwdro8MM8lh2RasQo6xgIgLegASo+DK+1Sb1PUQUc0CGnhZ0OtwY+pzkVmDS30BQg="}],"size":1959,"noattachment":false,"key":"/qmap/-/qmap-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.4","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1394074020069,"_cnpm_publish_time":1394074020069},"0.0.1":{"name":"qmap","version":"0.0.1","description":"Async function map and queue","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/scottcorgan/qmap.git"},"keywords":["async","queue","map","function"],"author":{"name":"Scott Corgan"},"license":"MIT","bugs":{"url":"https://github.com/scottcorgan/qmap/issues"},"homepage":"https://github.com/scottcorgan/qmap","_id":"qmap@0.0.1","dist":{"shasum":"1e81067acc133fafc0376348f0514a92e1903616","tarball":"http://registry-npm.ywwl.com/qmap/download/qmap-0.0.1.tgz","integrity":"sha512-b5SXwmt6F1obkMBC0AL5jp3Dx1aeprJs0iG1HwbXxsXvHV/ZoxNEZcDq1dBs/CZPn8f/cFPAPop8mEU7uv9UXQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAdoAfg3F768SvnARWM+SUJ6r8gkfOezf4PXqytmGfQnAiEA5Xk4tOacMDTwrylOXHI9kUxET88S413nncRuSAUySRs="}],"size":531,"noattachment":false,"key":"/qmap/-/qmap-0.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"scottcorgan","email":"scottcorgan@gmail.com"},"maintainers":[{"name":"scottcorgan","email":"scottcorgan@gmail.com"}],"publish_time":1393344510396,"_cnpm_publish_time":1393344510396}},"readme":"# qmap\n\nAsync function map and queue.\n\nCreate methods and add those methods to a queue to be drained later.\n\n## Install\n\n```\nnpm install qmap --save\n```\n\n## Usage\n\nAdding anonymous functions\n\n```js\nvar Qmap = requier('qmap');\nvar queue = new Qmap();\n// You may pass in an optional context as the first argument to bind each method to\n// when instantiating the constructor\n\nqueue.push(function (done) {\n  // Do something\n  done();\n});\n\nqueue.push(function (done) {\n  // Do something else\n  done();\n});\n\nqueue.drain(function (err) {\n  // All done\n});\n```\n\nAdding named methods and anonymous functions\n\n```js\nvar Qmap = require('qmap');\nvar queue = new Qmap();\n\nqueue.method('method1', function (done) {\n  // Do something\n  done();\n});\n\nqueue.push('method1');\nqueue.push(function (done) {\n  done();\n});\n\nqueue.drain(function (err) {\n  \n});\n```\n\n## Api\n\n### push(fn[, fn1, fn2, ....]);\n\nAdd any number of functions, either as arguments or as an array. These can be either anonymous functions or named methods declared by the `method()` function.\n\n* `fn` - function or name of a method on the queue\n\n### method(name, fn)\n\nCreate a named method to be used later in the queue with `push(methodName)`\n\n* `name` - the name of the method\n* `fn` - the function to fun when the named method gets added to the queue\n\n## Run tests\n\n```\nnpm install\nnpm test\n```","_attachments":{},"homepage":"https://github.com/scottcorgan/qmap","bugs":{"url":"https://github.com/scottcorgan/qmap/issues"},"license":"MIT"}