{"_id":"sprom","_rev":"18-c9b6962c6350fc19a3e56fe4fbbfc61b","name":"sprom","description":"Convert node.js Streams into Promises","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"sprom","version":"1.0.0","description":"Convert node.js Streams into Promises","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/then/sprom.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","dependencies":{"concat-stream":"~0.1.1","promise":"~2.0.0"},"devDependencies":{"through":"~2.3.1","mocha":"~1.9.0"},"_id":"sprom@1.0.0","dist":{"shasum":"2dfc5808276d817557757d6c10b97a2d56d3f224","tarball":"https://registry.npmjs.org/sprom/-/sprom-1.0.0.tgz","integrity":"sha512-nON6h6ebmmLtKqKzIHnCT6u9Ycx4z+ASLiYqum8JIxWrFC98YWv3lPHWxztVL22jvXmmYbUXOnjv7cbMjH6Ibw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCC4JbUH5OQoesiBbNYZxe1rNLIJqO014X5EWFVVUxyNgIgbAWusWEzVIw00/8kHqOwJdnbSuzhlPqoWm0Rf7U4ats="}]},"_from":".","_npmVersion":"1.2.10","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}]},"2.0.0":{"name":"sprom","version":"2.0.0","description":"Convert node.js Streams into Promises","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/then/sprom.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","dependencies":{"concat-stream":"~0.1.1","promise":">= 3 < 4"},"devDependencies":{"through":"~2.3.1","mocha":"~1.9.0"},"bugs":{"url":"https://github.com/then/sprom/issues"},"homepage":"https://github.com/then/sprom","_id":"sprom@2.0.0","dist":{"shasum":"3a709fa1bd49a64fee94c137302e95417563c35c","tarball":"https://registry.npmjs.org/sprom/-/sprom-2.0.0.tgz","integrity":"sha512-ZrpXG8OFFxw1hHl7yuqm1H6X4Bm+k+C5Huad09EeUSguiX0LG+xKyBE4Ocw2E/KsPWJcPXvp2zJQTVcA6lB0Tg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFlzAZdbUff3S3KI9NjYyWWg8uF8Rob7xocHtALmXUzyAiEAjZoz6A62oTA7v+9JaDPgXJBjm4M2eQ60PtiRGW10q0c="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"forbeslindesay","email":"forbes@lindeay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}]},"2.0.2":{"name":"sprom","version":"2.0.2","description":"Convert node.js Streams into Promises","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/then/sprom.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","dependencies":{"concat-stream":"^1.2.1","promise":">=3 <6"},"devDependencies":{"through":"~2.3.1","mocha":"~1.9.0"},"bugs":{"url":"https://github.com/then/sprom/issues"},"homepage":"https://github.com/then/sprom","_id":"sprom@2.0.2","_shasum":"26882ddc1b85f32dba54432a7a95a42645279c41","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"nathan7","email":"nathan@nathan7.eu"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"nathan7","email":"nathan@nathan7.eu"}],"dist":{"shasum":"26882ddc1b85f32dba54432a7a95a42645279c41","tarball":"https://registry.npmjs.org/sprom/-/sprom-2.0.2.tgz","integrity":"sha512-kSLlfNLPq1TawrqOq2vwvpSSOrZ3HniINsZvqVDG4DIr6SNOgl+IXNhzoKp6wWyRC4cJduiU3uXFHBCboiSMNg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDiE29ZdEapSH1iWaSz0HdLrHEdY4QAvRgQYrtpCqH3bAiBcKuU1sbgztM8ph3KkiKnmXX1ctaPpVoK06f4w3DFA3g=="}]}},"2.0.3":{"name":"sprom","version":"2.0.3","description":"Convert node.js Streams into Promises","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/then/sprom.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","dependencies":{"concat-stream":">=1.2.1 <2","promise":">=3 <6"},"devDependencies":{"through":"~2.3.1","mocha":"~1.9.0"},"bugs":{"url":"https://github.com/then/sprom/issues"},"homepage":"https://github.com/then/sprom","_id":"sprom@2.0.3","_shasum":"a3fb3ee054a70415a749d44c52a94185b8a38dfd","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"nathan7","email":"nathan@nathan7.eu"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"nathan7","email":"nathan@nathan7.eu"}],"dist":{"shasum":"a3fb3ee054a70415a749d44c52a94185b8a38dfd","tarball":"https://registry.npmjs.org/sprom/-/sprom-2.0.3.tgz","integrity":"sha512-00KVouQwP76OknswckPuOYDKiYeJItXfgv4cLjmULVpKRt6whxf1yf3ggSbHcRBQ5yTHvM/SAxt4KGf6fSdyNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE3VogRPHZzaYtiFDgjx6UOOd2Gdh9tDXjeEF844ICFoAiB3Y6aFe0lERwSl1RsHsrJyeKh92iH+3gwhp8NGSGa+LA=="}]}},"2.0.4":{"name":"sprom","version":"2.0.4","description":"Convert node.js Streams into Promises","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/then/sprom.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","dependencies":{"concat-stream":">=1.2.1 <2","promise":">=3 <6"},"devDependencies":{"through":"~2.3.1","mocha":"~1.9.0"},"bugs":{"url":"https://github.com/then/sprom/issues"},"homepage":"https://github.com/then/sprom","_id":"sprom@2.0.4","_shasum":"e35831c27280383e5bae980fa61463720c26ca5a","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"nathan7","email":"nathan@nathan7.eu"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"nathan7","email":"nathan@nathan7.eu"}],"dist":{"shasum":"e35831c27280383e5bae980fa61463720c26ca5a","tarball":"https://registry.npmjs.org/sprom/-/sprom-2.0.4.tgz","integrity":"sha512-flpQDSo37KQ1hn6j33S6XAt0O6E+vC2s7b95KPrCttZs4z1lARJR/0slAMafC06n9iwrZkXrIvA1um7cfDCoiw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFpL1iOnI3xOv8jIswGSYOmZ3X1jsG/tURlbi/SAwCzeAiAhbmB3O0EZt26tAstmW+MTjbr2sF0BFQ0ptFOEPjsTtw=="}]}},"2.1.0":{"name":"sprom","version":"2.1.0","description":"Convert node.js Streams into Promises","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/then/sprom.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","dependencies":{"concat-stream":">=1.2.1 <2","promise":">=3 <6"},"devDependencies":{"through":"~2.3.1","mocha":"~1.9.0"},"bugs":{"url":"https://github.com/then/sprom/issues"},"homepage":"https://github.com/then/sprom","_id":"sprom@2.1.0","_shasum":"5bea9b9bc7c636ad43c30d3bea66ff103c38348c","_from":".","_npmVersion":"1.4.7","_npmUser":{"name":"nathan7","email":"nathan@nathan7.eu"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"nathan7","email":"nathan@nathan7.eu"}],"dist":{"shasum":"5bea9b9bc7c636ad43c30d3bea66ff103c38348c","tarball":"https://registry.npmjs.org/sprom/-/sprom-2.1.0.tgz","integrity":"sha512-QvtT0EJ9Z4Z7N05chQb1FLOlNKBaosecoCHsGCxYhNczPjPemusAGPaXcB4shNhCbYuzFCOpBzuipt2d0R0xIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICAAliEDJ7EqdCV/Bfi+97koh+xPHudV9IrMDx3nNWl/AiEA/UI8k9I44q0kw+xacK9coIYgWmU9KY4S/QpqTBdh+To="}]}},"3.0.0":{"name":"sprom","version":"3.0.0","description":"Convert node.js Streams into Promises","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git+https://github.com/then/sprom.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","dependencies":{"concat-stream":">=1.2.1 <2","promise":">=3 <8"},"devDependencies":{"through":"~2.3.1","mocha":"~1.9.0"},"gitHead":"3f4fd86ed3fe087fa40ff8ed27eb35f7fada0269","bugs":{"url":"https://github.com/then/sprom/issues"},"homepage":"https://github.com/then/sprom#readme","_id":"sprom@3.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.6.0","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"nathan7","email":"nathan@nathan7.eu"}],"dist":{"integrity":"sha512-oibQDTtQI8mgIarOOJxFLwpIXHxlP8gTTtcQP6pzi7ZLVNKeLxlJ8jru6SFqtIS6E7tiHlJXD2MZhXspPJzBAg==","shasum":"24aaa2a9e676152ba9fea3e4088317032af5a21c","tarball":"https://registry.npmjs.org/sprom/-/sprom-3.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB0CPxPnVlZuoaTZj+Gy2NqSE+31Astncm7+xSvNb0xCAiBcqhOsNC9cMNpqTLnk/gcg3Dm4otH6Mp8+ye7Bv2oC1g=="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sprom-3.0.0.tgz_1510799783208_0.7118377906735986"}}},"readme":"# sprom\n\nConvert node.js Streams into Promises\n\n[![Build Status](https://img.shields.io/travis/then/sprom/master.svg)](https://travis-ci.org/then/sprom)\n[![Dependency Status](https://img.shields.io/david/then/sprom.svg)](https://david-dm.org/then/sprom)\n\n## Installation\n\n    $ npm install sprom\n\n## Usage\n\n\n```javascript\nsprom.end(request(url).pipe(fs.createWriteStream('file.json')))\n  .then(function () {\n    console.log('Successfully wrote file');\n  }, function (err) {\n    console.error('Failed to write file');\n    console.error(err.stack || err.message || err);\n  });\nsprom(request(url))\n  .then(function (body) {\n    console.dir(JSON.parse(body.toString()));\n  })\n  .then(null, function (err) {\n    console.error('Failed to read JSON');\n    console.error(err.stack || err.message || err);\n  });\n```\n\n## API\n\n### sprom.end(stream)\n\nGet a promise that is resolved when the stream has ended.  This won't make any attempt to look at the data of the stream.\n\n### sprom.buf(stream)\n\nBuffers the contents of the stream using `concat-stream` and returns a promise for the concatenated results.\n\n### sprom.arr(stream)\n\nBuffers the contents of the stream into an array and returns a promise for the array.\n\n## License\n\nMIT\n","maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"nathan7","email":"nathan@nathan7.eu"}],"time":{"modified":"2022-06-26T23:10:40.627Z","created":"2013-04-23T21:52:02.913Z","1.0.0":"2013-04-23T21:52:10.800Z","2.0.0":"2013-12-16T17:25:06.056Z","2.0.2":"2014-05-03T22:56:11.845Z","2.0.3":"2014-05-06T13:52:58.118Z","2.0.4":"2014-05-06T16:05:14.772Z","2.1.0":"2014-05-06T16:05:53.683Z","3.0.0":"2017-11-16T02:36:24.106Z"},"author":{"name":"ForbesLindesay"},"repository":{"type":"git","url":"git+https://github.com/then/sprom.git"},"homepage":"https://github.com/then/sprom#readme","bugs":{"url":"https://github.com/then/sprom/issues"},"license":"MIT","readmeFilename":"README.md"}