@zkochan/pnpm
Version:
Fast, disk space efficient package manager
94 lines (93 loc) • 4.1 kB
JSON
{
"_args": [
[
{
"raw": "parallel-transform@^1.1.0",
"scope": null,
"escapedName": "parallel-transform",
"name": "parallel-transform",
"rawSpec": "^1.1.0",
"spec": ">=1.1.0 <2.0.0",
"type": "range"
},
"/home/zkochan/src/pnpm/packages/pnpm/node_modules/mississippi"
]
],
"_from": "parallel-transform@>=1.1.0 <2.0.0",
"_id": "parallel-transform@1.1.0",
"_inCache": true,
"_location": "/parallel-transform",
"_nodeVersion": "4.6.1",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/parallel-transform-1.1.0.tgz_1478596056784_0.9169374129269272"
},
"_npmUser": {
"name": "mafintosh",
"email": "mathiasbuus@gmail.com"
},
"_npmVersion": "2.15.9",
"_phantomChildren": {},
"_requested": {
"raw": "parallel-transform@^1.1.0",
"scope": null,
"escapedName": "parallel-transform",
"name": "parallel-transform",
"rawSpec": "^1.1.0",
"spec": ">=1.1.0 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/mississippi"
],
"_resolved": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.1.0.tgz",
"_shasum": "d410f065b05da23081fcd10f28854c29bda33b06",
"_shrinkwrap": null,
"_spec": "parallel-transform@^1.1.0",
"_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/mississippi",
"author": {
"name": "Mathias Buus Madsen",
"email": "mathiasbuus@gmail.com"
},
"bugs": {
"url": "https://github.com/mafintosh/parallel-transform/issues"
},
"dependencies": {
"cyclist": "~0.2.2",
"inherits": "^2.0.3",
"readable-stream": "^2.1.5"
},
"description": "Transform stream that allows you to run your transforms in parallel without changing the order",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "d410f065b05da23081fcd10f28854c29bda33b06",
"tarball": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.1.0.tgz"
},
"gitHead": "1b4919bc318eb0cbd6e8ee08c4d56f405d74e643",
"homepage": "https://github.com/mafintosh/parallel-transform#readme",
"keywords": [
"transform",
"stream",
"parallel",
"preserve",
"order"
],
"license": "MIT",
"maintainers": [
{
"name": "mafintosh",
"email": "mathiasbuus@gmail.com"
}
],
"name": "parallel-transform",
"optionalDependencies": {},
"readme": "# parallel-transform\n\n[Transform stream](http://nodejs.org/api/stream.html#stream_class_stream_transform_1) for Node.js that allows you to run your transforms\nin parallel without changing the order of the output.\n\n\tnpm install parallel-transform\n\nIt is easy to use\n\n``` js\nvar transform = require('parallel-transform');\n\nvar stream = transform(10, function(data, callback) { // 10 is the parallism level\n\tsetTimeout(function() {\n\t\tcallback(null, data);\n\t}, Math.random() * 1000);\n});\n\nfor (var i = 0; i < 10; i++) {\n\tstream.write(''+i);\n}\nstream.end();\n\nstream.on('data', function(data) {\n\tconsole.log(data); // prints 0,1,2,...\n});\nstream.on('end', function() {\n\tconsole.log('stream has ended');\n});\n```\n\nIf you run the above example you'll notice that it runs in parallel\n(does not take ~1 second between each print) and that the order is preserved\n\n## Stream options\n\nAll transforms are Node 0.10 streams. Per default they are created with the options `{objectMode:true}`.\nIf you want to use your own stream options pass them as the second parameter\n\n``` js\nvar stream = transform(10, {objectMode:false}, function(data, callback) {\n\t// data is now a buffer\n\tcallback(null, data);\n});\n\nfs.createReadStream('filename').pipe(stream).pipe(process.stdout);\n```\n\n### Unordered\nPassing the option `{ordered:false}` will output the data as soon as it's processed by a transform, without waiting to respect the order.\n\n## License\n\nMIT",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git://github.com/mafintosh/parallel-transform.git"
},
"scripts": {},
"version": "1.1.0"
}