{ "_id": "batch", "_rev": "55-680c846e0b75864ca7a71828e3a81771", "name": "batch", "description": "Simple async batch with concurrency control and progress reporting.", "dist-tags": { "latest": "0.6.1" }, "versions": { "0.0.1": { "name": "batch", "version": "0.0.1", "description": "Simple async batch", "keywords": [], "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "dependencies": { "mocha": "*", "should": "*" }, "main": "index", "engines": { "node": "0.4.x" }, "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "_id": "batch@0.0.1", "devDependencies": {}, "_engineSupported": true, "_npmVersion": "1.0.106", "_nodeVersion": "v0.4.12", "_defaultsLoaded": true, "dist": { "shasum": "4abd5e273d3b0d07b41e2dc32a1e27978513b846", "tarball": "https://registry.npmjs.org/batch/-/batch-0.0.1.tgz" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {} }, "0.0.2": { "name": "batch", "version": "0.0.2", "description": "Simple async batch", "keywords": [], "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "dependencies": { "mocha": "*", "should": "*" }, "main": "index", "engines": { "node": "*" }, "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "_id": "batch@0.0.2", "devDependencies": {}, "_engineSupported": true, "_npmVersion": "1.0.106", "_nodeVersion": "v0.6.10", "_defaultsLoaded": true, "dist": { "shasum": "fc558c82ded76cd8ddf049d2ba065f352d185f9c", "tarball": "https://registry.npmjs.org/batch/-/batch-0.0.2.tgz" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {} }, "0.0.3": { "name": "batch", "version": "0.0.3", "description": "Simple async batch", "keywords": [], "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "dependencies": { "mocha": "*", "should": "*" }, "main": "index", "engines": { "node": "*" }, "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "_id": "batch@0.0.3", "devDependencies": {}, "optionalDependencies": {}, "_engineSupported": true, "_npmVersion": "1.1.0-3", "_nodeVersion": "v0.6.12", "_defaultsLoaded": true, "dist": { "shasum": "4db7de56a489f3138f6e2ad73875b6acffffa424", "tarball": "https://registry.npmjs.org/batch/-/batch-0.0.3.tgz" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {} }, "0.1.0": { "name": "batch", "version": "0.1.0", "description": "Simple async batch", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "dependencies": { "mocha": "*", "should": "*" }, "main": "index", "_id": "batch@0.1.0", "dist": { "shasum": "34ee7b3bf200a416cc05b967273513e6fe2cd808", "tarball": "https://registry.npmjs.org/batch/-/batch-0.1.0.tgz" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {} }, "0.1.1": { "name": "batch", "version": "0.1.1", "description": "Simple async batch", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "dependencies": { "mocha": "*", "should": "*" }, "main": "index", "_id": "batch@0.1.1", "dist": { "shasum": "7550e96efb11c26db2032ca6f0ba6720e8cf971a", "tarball": "https://registry.npmjs.org/batch/-/batch-0.1.1.tgz" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {} }, "0.2.0": { "name": "batch", "version": "0.2.0", "description": "Simple async batch", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "dependencies": { "mocha": "*", "should": "*" }, "main": "index", "_id": "batch@0.2.0", "dist": { "shasum": "22b09f1497a143ba688795cb3068a856f61871e9", "tarball": "https://registry.npmjs.org/batch/-/batch-0.2.0.tgz" }, "_npmVersion": "1.1.61", "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {} }, "0.2.1": { "name": "batch", "version": "0.2.1", "description": "Simple async batch", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "devDependencies": { "mocha": "*", "should": "*" }, "main": "index", "_id": "batch@0.2.1", "dist": { "shasum": "4463997bb4d5fd1c7a011548813e52aa189c2c79", "tarball": "https://registry.npmjs.org/batch/-/batch-0.2.1.tgz" }, "_npmVersion": "1.1.65", "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {} }, "0.3.0": { "name": "batch", "version": "0.3.0", "description": "Simple async batch", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "devDependencies": { "mocha": "*", "should": "*" }, "main": "index", "_id": "batch@0.3.0", "dist": { "shasum": "b194d2b3b7dc6cdd6ea1269728d8b9c985150cf7", "tarball": "https://registry.npmjs.org/batch/-/batch-0.3.0.tgz" }, "_from": ".", "_npmVersion": "1.2.14", "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {} }, "0.3.1": { "name": "batch", "version": "0.3.1", "description": "Simple async batch", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "devDependencies": { "mocha": "*", "should": "*" }, "main": "index", "_id": "batch@0.3.1", "dist": { "shasum": "05ea40c288f0c56aef2a739507218426458cb7a0", "tarball": "https://registry.npmjs.org/batch/-/batch-0.3.1.tgz" }, "_from": ".", "_npmVersion": "1.2.14", "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {} }, "0.3.2": { "name": "batch", "version": "0.3.2", "description": "Simple async batch", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "devDependencies": { "mocha": "*", "should": "*" }, "main": "index", "_id": "batch@0.3.2", "dist": { "shasum": "8f802c1358be2b33535f8808e0a23c9f0075733b", "tarball": "https://registry.npmjs.org/batch/-/batch-0.3.2.tgz" }, "_from": ".", "_npmVersion": "1.2.14", "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {} }, "0.4.0": { "name": "batch", "version": "0.4.0", "description": "Simple async batch", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "devDependencies": { "mocha": "*", "should": "*" }, "main": "index", "_id": "batch@0.4.0", "dist": { "shasum": "bffe40bc117b73942da155bc77d8a36a21a6ac58", "tarball": "https://registry.npmjs.org/batch/-/batch-0.4.0.tgz" }, "_from": ".", "_npmVersion": "1.2.21", "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {} }, "0.5.0": { "name": "batch", "version": "0.5.0", "description": "Simple async batch", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "devDependencies": { "mocha": "*", "should": "*" }, "main": "index", "_id": "batch@0.5.0", "dist": { "shasum": "fd2e05a7a5d696b4db9314013e285d8ff3557ec3", "tarball": "https://registry.npmjs.org/batch/-/batch-0.5.0.tgz" }, "_from": ".", "_npmVersion": "1.2.30", "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {} }, "0.5.1": { "name": "batch", "version": "0.5.1", "description": "Simple async batch", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "devDependencies": { "mocha": "*", "should": "*" }, "main": "index", "repository": { "type": "git", "url": "https://github.com/visionmedia/batch.git" }, "bugs": { "url": "https://github.com/visionmedia/batch/issues" }, "homepage": "https://github.com/visionmedia/batch", "_id": "batch@0.5.1", "dist": { "shasum": "36a4bab594c050fd7b507bca0db30c2d92af4ff2", "tarball": "https://registry.npmjs.org/batch/-/batch-0.5.1.tgz" }, "_from": ".", "_npmVersion": "1.3.21", "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {} }, "0.5.2": { "name": "batch", "version": "0.5.2", "licenses": [ { "type": "MIT" } ], "description": "Simple async batch", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "devDependencies": { "mocha": "*", "should": "*" }, "main": "index", "browser": { "emitter": "component-emitter" }, "repository": { "type": "git", "url": "https://github.com/visionmedia/batch.git" }, "gitHead": "cd69ea173754c0fbd3a7ab33e0a678e6909f3bf3", "bugs": { "url": "https://github.com/visionmedia/batch/issues" }, "homepage": "https://github.com/visionmedia/batch", "_id": "batch@0.5.2", "scripts": {}, "_shasum": "546543dbe32118c83c7c7ca33a1f5c5d5ea963e9", "_from": ".", "_npmVersion": "2.1.14", "_nodeVersion": "0.11.14", "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "dist": { "shasum": "546543dbe32118c83c7c7ca33a1f5c5d5ea963e9", "tarball": "https://registry.npmjs.org/batch/-/batch-0.5.2.tgz" }, "directories": {} }, "0.5.3": { "name": "batch", "version": "0.5.3", "licenses": [ { "type": "MIT" } ], "description": "Simple async batch", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "devDependencies": { "mocha": "*", "should": "*" }, "main": "index", "browser": { "emitter": "events" }, "repository": { "type": "git", "url": "https://github.com/visionmedia/batch.git" }, "gitHead": "247f3ec041be32bb8ddc0816d2155b2391550084", "bugs": { "url": "https://github.com/visionmedia/batch/issues" }, "homepage": "https://github.com/visionmedia/batch", "_id": "batch@0.5.3", "scripts": {}, "_shasum": "3f3414f380321743bfc1042f9a83ff1d5824d464", "_from": ".", "_npmVersion": "2.10.1", "_nodeVersion": "0.12.4", "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "dist": { "shasum": "3f3414f380321743bfc1042f9a83ff1d5824d464", "tarball": "https://registry.npmjs.org/batch/-/batch-0.5.3.tgz" }, "directories": {} }, "0.6.0": { "name": "batch", "description": "Simple async batch with concurrency control and progress reporting.", "version": "0.6.0", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "license": "MIT", "devDependencies": { "mocha": "*", "should": "*" }, "main": "index", "browser": { "emitter": "events" }, "repository": { "type": "git", "url": "git+https://github.com/visionmedia/batch.git" }, "gitHead": "09ca0c57db6c02801eda147830f04747eeef9f4f", "bugs": { "url": "https://github.com/visionmedia/batch/issues" }, "homepage": "https://github.com/visionmedia/batch#readme", "_id": "batch@0.6.0", "scripts": {}, "_shasum": "cd6a5e555f53ae92b561899b2738089b0dd91b31", "_from": ".", "_npmVersion": "2.15.11", "_nodeVersion": "4.7.3", "_npmUser": { "name": "dougwilson", "email": "doug@somethingdoug.com" }, "dist": { "shasum": "cd6a5e555f53ae92b561899b2738089b0dd91b31", "tarball": "https://registry.npmjs.org/batch/-/batch-0.6.0.tgz" }, "maintainers": [ { "name": "dougwilson", "email": "doug@somethingdoug.com" }, { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/batch-0.6.0.tgz_1490493912235_0.23688052222132683" }, "directories": {} }, "0.6.1": { "name": "batch", "description": "Simple async batch with concurrency control and progress reporting.", "version": "0.6.1", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "license": "MIT", "devDependencies": { "mocha": "*", "should": "*" }, "main": "index", "browser": { "emitter": "events" }, "repository": { "type": "git", "url": "git+https://github.com/visionmedia/batch.git" }, "gitHead": "577ea162b9be76e79d2fcc43c47ed573112e9892", "bugs": { "url": "https://github.com/visionmedia/batch/issues" }, "homepage": "https://github.com/visionmedia/batch#readme", "_id": "batch@0.6.1", "scripts": {}, "_shasum": "dc34314f4e679318093fc760272525f94bf25c16", "_from": ".", "_npmVersion": "3.10.10", "_nodeVersion": "6.10.3", "_npmUser": { "name": "dougwilson", "email": "doug@somethingdoug.com" }, "dist": { "shasum": "dc34314f4e679318093fc760272525f94bf25c16", "tarball": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz" }, "maintainers": [ { "name": "dougwilson", "email": "doug@somethingdoug.com" }, { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/batch-0.6.1.tgz_1494969108544_0.02703835256397724" }, "directories": {} } }, "readme": "\n# batch\n\n Simple async batch with concurrency control and progress reporting.\n\n## Installation\n\n```\n$ npm install batch\n```\n\n## API\n\n```js\nvar Batch = require('batch')\n , batch = new Batch;\n\nbatch.concurrency(4);\n\nids.forEach(function(id){\n batch.push(function(done){\n User.get(id, done);\n });\n});\n\nbatch.on('progress', function(e){\n\n});\n\nbatch.end(function(err, users){\n\n});\n```\n\n### Progress events\n\n Contain the \"job\" index, response value, duration information, and completion data.\n\n```\n{ index: 1,\n value: 'bar',\n pending: 2,\n total: 3,\n complete: 2,\n percent: 66,\n start: Thu Oct 04 2012 12:25:53 GMT-0700 (PDT),\n end: Thu Oct 04 2012 12:25:53 GMT-0700 (PDT),\n duration: 0 }\n```\n\n## License\n\n[MIT](LICENSE)\n", "maintainers": [ { "name": "dougwilson", "email": "doug@somethingdoug.com" }, { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "time": { "modified": "2017-08-29T14:43:06.238Z", "created": "2012-01-17T03:10:03.348Z", "0.0.1": "2012-01-17T03:10:04.791Z", "0.0.2": "2012-02-13T00:50:21.813Z", "0.0.3": "2012-06-02T14:26:31.123Z", "0.1.0": "2012-07-03T18:13:02.061Z", "0.1.1": "2012-07-03T18:26:52.473Z", "0.2.0": "2012-10-04T19:26:54.467Z", "0.2.1": "2012-11-08T22:36:55.327Z", "0.3.0": "2013-03-13T18:57:41.132Z", "0.3.1": "2013-03-13T22:41:45.130Z", "0.3.2": "2013-03-15T15:25:01.756Z", "0.4.0": "2013-06-06T04:02:23.107Z", "0.5.0": "2013-07-29T20:56:36.139Z", "0.5.1": "2014-06-19T14:54:42.522Z", "0.5.2": "2014-12-22T18:29:32.048Z", "0.5.3": "2015-10-01T16:08:54.699Z", "0.6.0": "2017-03-26T02:05:13.916Z", "0.6.1": "2017-05-16T21:11:49.205Z" }, "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca" }, "users": { "tantrum": true, "bat": true, "haeck": true, "micahjonas": true, "parkerproject": true, "markthethomas": true, "joanmi": true }, "homepage": "https://github.com/visionmedia/batch#readme", "repository": { "type": "git", "url": "git+https://github.com/visionmedia/batch.git" }, "bugs": { "url": "https://github.com/visionmedia/batch/issues" }, "readmeFilename": "Readme.md", "license": "MIT", "_attachments": {} }