{"_id":"readable-stream-node-to-web","_rev":"4652685","name":"readable-stream-node-to-web","description":"Converts a node Readable stream to a web ReadableStream","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"xuset","email":""}],"time":{"modified":"2026-04-10T20:48:20.000Z","created":"2017-08-02T04:04:43.042Z","1.0.1":"2017-08-03T02:54:37.061Z","1.0.0":"2017-08-02T04:04:43.042Z"},"users":{},"author":{"name":"xuset"},"repository":{"type":"git","url":"git+https://github.com/xuset/readable-stream-node-to-web.git"},"versions":{"1.0.1":{"name":"readable-stream-node-to-web","version":"1.0.1","description":"Converts a node Readable stream to a web ReadableStream","main":"index.js","scripts":{"test":"standard && karma start"},"repository":{"type":"git","url":"git+https://github.com/xuset/readable-stream-node-to-web.git"},"keywords":["readable","stream","readablestream","node","web","whatwg"],"author":{"name":"xuset"},"license":"MIT","bugs":{"url":"https://github.com/xuset/readable-stream-node-to-web/issues"},"homepage":"https://github.com/xuset/readable-stream-node-to-web#readme","devDependencies":{"browserify":"^14.4.0","karma":"^1.7.0","karma-browserify":"^5.1.1","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.0.1","karma-sauce-launcher":"^1.1.0","karma-tap":"^3.1.1","standard":"^10.0.2","tape":"^4.7.0","watchify":"^3.9.0"},"gitHead":"54e13397d7df0f0f1e9b4476f7777481ea80ac08","_id":"readable-stream-node-to-web@1.0.1","_shasum":"8b7614faa1465ebfa0da9b9ca6303fa27073b7cf","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"xuset","email":"austinmid@utexas.edu"},"dist":{"shasum":"8b7614faa1465ebfa0da9b9ca6303fa27073b7cf","size":4872,"noattachment":false,"key":"/readable-stream-node-to-web/-/readable-stream-node-to-web-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/readable-stream-node-to-web/download/readable-stream-node-to-web-1.0.1.tgz"},"maintainers":[{"name":"xuset","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/readable-stream-node-to-web-1.0.1.tgz_1501728876158_0.9418642136733979"},"directories":{},"publish_time":1501728877061,"_hasShrinkwrap":false,"_cnpm_publish_time":1501728877061,"_cnpmcore_publish_time":"2021-12-16T20:52:29.997Z"},"1.0.0":{"name":"readable-stream-node-to-web","version":"1.0.0","description":"Converts a node Readable stream to a web ReadableStream","main":"index.js","scripts":{"test":"standard && karma start"},"repository":{"type":"git","url":"git+https://github.com/xuset/readable-stream-node-to-web.git"},"keywords":["readable","stream","readablestream","node","web","whatwg"],"author":{"name":"xuset"},"license":"MIT","bugs":{"url":"https://github.com/xuset/readable-stream-node-to-web/issues"},"homepage":"https://github.com/xuset/readable-stream-node-to-web#readme","devDependencies":{"browserify":"^14.4.0","karma":"^1.7.0","karma-browserify":"^5.1.1","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.0.1","karma-sauce-launcher":"^1.1.0","karma-tap":"^3.1.1","standard":"^10.0.2","tape":"^4.7.0","watchify":"^3.9.0"},"gitHead":"5e4d4167a8c06cdba4eed8cd4ce9f6dba0f1e0c9","_id":"readable-stream-node-to-web@1.0.0","_shasum":"60be4fd9a6175747627116842ad82fbee4b07a9e","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"xuset","email":"austinmid@utexas.edu"},"dist":{"shasum":"60be4fd9a6175747627116842ad82fbee4b07a9e","size":4354,"noattachment":false,"key":"/readable-stream-node-to-web/-/readable-stream-node-to-web-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/readable-stream-node-to-web/download/readable-stream-node-to-web-1.0.0.tgz"},"maintainers":[{"name":"xuset","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/readable-stream-node-to-web-1.0.0.tgz_1501646682083_0.06453713052906096"},"directories":{},"publish_time":1501646683042,"_hasShrinkwrap":false,"_cnpm_publish_time":1501646683042,"_cnpmcore_publish_time":"2021-12-16T20:52:30.238Z"}},"readme":"# readable-stream-node-to-web [![Build Status](https://travis-ci.org/xuset/readable-stream-node-to-web.svg?branch=master)](https://travis-ci.org/xuset/readable-stream-node-to-web) [![npm](https://img.shields.io/npm/v/readable-stream-node-to-web.svg)](https://npmjs.org/package/readable-stream-node-to-web)\n\n#### Convert a nodejs Readable stream to a web ReadableStream\n\n[![Sauce Test Status](https://saucelabs.com/browser-matrix/xuset-readable-stream-node-to-web.svg)](https://saucelabs.com/u/xuset-readable-stream-node-to-web)\n\n\n```js\nvar nodeToWebStream = require('readable-stream-node-to-web');\n\nvar nodeStream = // Obtain a nodejs Readable stream\nvar webStream = nodeToWebStream(nodeStream);\n```\n\n`nodeStream` is a [NodeJS Readable stream](https://nodejs.org/api/stream.html#stream_readable_streams)\n\n`webStream` is a [WhatWG web ReadableStream](https://streams.spec.whatwg.org/#rs-class)\n\nThis method takes a readable node stream and returns a web stream to reads from given the node stream. This allows the plethora of nodejs modules involving Readable streams to be used in a web context like using a node stream with [FetchEvent.respondWith()](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent/respondWith)\n\nThis module can be used with bundlers like browserify or webpack. This module is also written in es5 so there is no need for transpilation.\n\n## License\n\nMIT. Copyright (c) Austin Middleton.\n","_attachments":{},"homepage":"https://github.com/xuset/readable-stream-node-to-web#readme","bugs":{"url":"https://github.com/xuset/readable-stream-node-to-web/issues"},"license":"MIT"}