{"_id":"node-readable-to-web-readable-stream","_rev":"4250623","name":"node-readable-to-web-readable-stream","description":"Convert Node Readable to Web API ReadableStream","dist-tags":{"latest":"0.4.2"},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"time":{"modified":"2026-03-30T01:38:04.000Z","created":"2025-02-01T19:20:14.063Z","0.4.2":"2025-03-09T09:05:38.304Z","0.4.1":"2025-03-08T20:23:58.636Z","0.4.0":"2025-03-08T17:53:36.299Z","0.3.1":"2025-02-17T20:12:55.664Z","0.3.0":"2025-02-12T18:34:53.634Z","0.2.0":"2025-02-10T19:37:31.588Z","0.1.4":"2025-02-02T18:44:43.414Z","0.1.3":"2025-02-02T17:39:23.138Z","0.1.1":"2025-02-02T14:52:16.294Z","0.1.0":"2025-02-01T19:20:14.063Z"},"users":{},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"repository":{"url":"git+https://github.com/Borewit/node-readable-to-web-readable-stream.git"},"versions":{"0.4.2":{"name":"node-readable-to-web-readable-stream","version":"0.4.2","description":"Convert Node Readable to Web API ReadableStream","type":"module","exports":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts'","compile-src":"tsc -p lib","compile":"yarn run compile-src","lint":"biome check","build":"yarn run clean && yarn run compile","test":"mocha","bun:test":"bun run --bun mocha"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.6.0","devDependencies":{"@biomejs/biome":"^1.9.4","@types/chai":"^5.0.1","@types/mocha":"^10.0.10","@types/node":"^22.13.8","chai":"^5.2.0","del-cli":"^6.0.0","mocha":"^11.0.1","typescript":"^5.8.2"},"keywords":["Readable","Stream","Node.js","Node","ReadableStream","convert","WHATWG","BYOB","Web API"],"repository":{"url":"git+https://github.com/Borewit/node-readable-to-web-readable-stream.git"},"_id":"node-readable-to-web-readable-stream@0.4.2","gitHead":"37493f89d8d1c4e58b413c8d372adefd10d02f0e","bugs":{"url":"https://github.com/Borewit/node-readable-to-web-readable-stream/issues"},"homepage":"https://github.com/Borewit/node-readable-to-web-readable-stream#readme","_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"shasum":"634da58d3fe42a47d4608f1d7f14f85e18daeabe","size":3521,"noattachment":false,"key":"/node-readable-to-web-readable-stream/-/node-readable-to-web-readable-stream-0.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-readable-to-web-readable-stream/download/node-readable-to-web-readable-stream-0.4.2.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/node-readable-to-web-readable-stream_0.4.2_1741511138005_0.9488365926525255"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-09T09:05:38.304Z","publish_time":1741511138304,"_source_registry_name":"default","_cnpm_publish_time":1741511138304},"0.4.1":{"name":"node-readable-to-web-readable-stream","version":"0.4.1","description":"Convert Node Readable to Web API ReadableStream","type":"module","exports":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts'","compile-src":"tsc -p lib","compile":"yarn run compile-src","lint":"biome check","build":"yarn run clean && yarn run compile","test":"mocha","bun:test":"bun run --bun mocha"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.6.0","devDependencies":{"@biomejs/biome":"^1.9.4","@types/chai":"^5.0.1","@types/mocha":"^10.0.10","@types/node":"^22.13.8","chai":"^5.2.0","del-cli":"^6.0.0","mocha":"^11.0.1","typescript":"^5.8.2"},"keywords":["Readable","Stream","Node.js","Node","ReadableStream","convert","WHATWG","BYOB","Web API"],"repository":{"url":"git+https://github.com/Borewit/node-readable-to-web-readable-stream.git"},"_id":"node-readable-to-web-readable-stream@0.4.1","gitHead":"a9c171a28ce5bc784b1930ab2346b03e53c70368","bugs":{"url":"https://github.com/Borewit/node-readable-to-web-readable-stream/issues"},"homepage":"https://github.com/Borewit/node-readable-to-web-readable-stream#readme","_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"shasum":"873d65684347e22dacffd494245cbc423dc28035","size":3535,"noattachment":false,"key":"/node-readable-to-web-readable-stream/-/node-readable-to-web-readable-stream-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-readable-to-web-readable-stream/download/node-readable-to-web-readable-stream-0.4.1.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/node-readable-to-web-readable-stream_0.4.1_1741465438456_0.2721370535409089"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-08T20:23:58.636Z","publish_time":1741465438636,"_source_registry_name":"default","_cnpm_publish_time":1741465438636},"0.4.0":{"name":"node-readable-to-web-readable-stream","version":"0.4.0","description":"Convert Node Readable to Web API ReadableStream","type":"module","exports":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts'","compile-src":"tsc -p lib","compile":"yarn run compile-src","lint":"biome check","build":"yarn run clean && yarn run compile","test":"mocha","bun:test":"bun run --bun mocha"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.6.0","devDependencies":{"@biomejs/biome":"^1.9.4","@types/chai":"^5.0.1","@types/mocha":"^10.0.10","@types/node":"^22.13.8","chai":"^5.2.0","del-cli":"^6.0.0","mocha":"^11.0.1","typescript":"^5.8.2"},"keywords":["Readable","Stream","Node.js","Node","ReadableStream","convert","WHATWG","BYOB","Web API"],"repository":{"url":"git+https://github.com/Borewit/node-readable-to-web-readable-stream.git"},"_id":"node-readable-to-web-readable-stream@0.4.0","gitHead":"fc52621476c0c002730501d4e5b3d2db93ba0a9e","bugs":{"url":"https://github.com/Borewit/node-readable-to-web-readable-stream/issues"},"homepage":"https://github.com/Borewit/node-readable-to-web-readable-stream#readme","_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"shasum":"11e46a316ddad2b2f623d767cbf821d8afe5ca63","size":3526,"noattachment":false,"key":"/node-readable-to-web-readable-stream/-/node-readable-to-web-readable-stream-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-readable-to-web-readable-stream/download/node-readable-to-web-readable-stream-0.4.0.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/node-readable-to-web-readable-stream_0.4.0_1741456416142_0.8551556437012047"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-08T17:53:36.299Z","publish_time":1741456416299,"_source_registry_name":"default","_cnpm_publish_time":1741456416299},"0.3.1":{"name":"node-readable-to-web-readable-stream","version":"0.3.1","description":"Convert Node Readable to Web API ReadableStream","type":"module","exports":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts'","compile-src":"tsc -p lib","compile":"yarn run compile-src","lint":"biome check","build":"yarn run clean && yarn run compile","test":"mocha","bun:test":"bun run --bun mocha"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.6.0","devDependencies":{"@biomejs/biome":"^1.9.4","@types/chai":"^5.0.1","@types/mocha":"^10.0.10","@types/node":"^22.13.1","chai":"^5.2.0","del-cli":"^6.0.0","mocha":"^11.0.1","typescript":"^5.7.3"},"keywords":["Readable","Stream","Node.js","Node","ReadableStream","convert","WHATWG","BYOB","Web API"],"repository":{"url":"git+https://github.com/Borewit/node-readable-to-web-readable-stream.git"},"_id":"node-readable-to-web-readable-stream@0.3.1","gitHead":"a4d0991ace80799057b801c069277d6464ee80dd","bugs":{"url":"https://github.com/Borewit/node-readable-to-web-readable-stream/issues"},"homepage":"https://github.com/Borewit/node-readable-to-web-readable-stream#readme","_nodeVersion":"22.11.0","_npmVersion":"10.9.0","dist":{"shasum":"ff721738089669ec13c997969262a0e20cde250e","size":3208,"noattachment":false,"key":"/node-readable-to-web-readable-stream/-/node-readable-to-web-readable-stream-0.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-readable-to-web-readable-stream/download/node-readable-to-web-readable-stream-0.3.1.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/node-readable-to-web-readable-stream_0.3.1_1739823175460_0.9673376553865054"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-17T20:12:55.664Z","publish_time":1739823175664,"_source_registry_name":"default","_cnpm_publish_time":1739823175664},"0.3.0":{"name":"node-readable-to-web-readable-stream","version":"0.3.0","description":"Convert Node Readable to Web API ReadableStream","type":"module","exports":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts'","compile-src":"tsc -p lib","compile":"yarn run compile-src","lint":"biome check","build":"yarn run clean && yarn run compile","test":"mocha","bun:test":"bun run --bun mocha"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.6.0","devDependencies":{"@biomejs/biome":"^1.9.4","@types/chai":"^5.0.1","@types/mocha":"^10.0.10","@types/node":"^22.13.1","chai":"^5.1.2","del-cli":"^6.0.0","mocha":"^11.0.1","typescript":"^5.7.3"},"keywords":["Readable","Stream","Node.js","Node","ReadableStream","convert","WHATWG","BYOB","Web API"],"repository":{"url":"git+https://github.com/Borewit/node-readable-to-web-readable-stream.git"},"_id":"node-readable-to-web-readable-stream@0.3.0","gitHead":"2378ac0f6288449665ae0a09f7d835e38a9f3f4e","bugs":{"url":"https://github.com/Borewit/node-readable-to-web-readable-stream/issues"},"homepage":"https://github.com/Borewit/node-readable-to-web-readable-stream#readme","_nodeVersion":"23.7.0","_npmVersion":"10.9.2","dist":{"shasum":"004e59dca5a83fb9f888f41ed838487fea6c40f1","size":3196,"noattachment":false,"key":"/node-readable-to-web-readable-stream/-/node-readable-to-web-readable-stream-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-readable-to-web-readable-stream/download/node-readable-to-web-readable-stream-0.3.0.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/node-readable-to-web-readable-stream_0.3.0_1739385293350_0.3079600756374692"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-12T18:34:53.634Z","publish_time":1739385293634,"_source_registry_name":"default","_cnpm_publish_time":1739385293634},"0.2.0":{"name":"node-readable-to-web-readable-stream","version":"0.2.0","description":"Convert Node Readable to Web API ReadableStream","type":"module","exports":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts'","compile-src":"tsc -p lib","compile":"yarn run compile-src","lint":"biome check","build":"yarn run clean && yarn run compile","test":"mocha","bun:test":"bun run --bun mocha"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.6.0","devDependencies":{"@biomejs/biome":"^1.9.4","@types/chai":"^5.0.1","@types/mocha":"^10.0.10","@types/node":"^22.13.1","chai":"^5.1.2","del-cli":"^6.0.0","mocha":"^11.0.1","typescript":"^5.7.3"},"keywords":["Readable","Stream","Node.js","Node","ReadableStream","convert","WHATWG","BYOB","Web API"],"repository":{"url":"git+https://github.com/Borewit/node-readable-to-web-readable-stream.git"},"_id":"node-readable-to-web-readable-stream@0.2.0","gitHead":"484dd012152ab3d53714e9654504c4d7ad840c86","bugs":{"url":"https://github.com/Borewit/node-readable-to-web-readable-stream/issues"},"homepage":"https://github.com/Borewit/node-readable-to-web-readable-stream#readme","_nodeVersion":"23.7.0","_npmVersion":"10.9.2","dist":{"shasum":"98be0ac7e53781d98635663063192f2525ae1372","size":3108,"noattachment":false,"key":"/node-readable-to-web-readable-stream/-/node-readable-to-web-readable-stream-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-readable-to-web-readable-stream/download/node-readable-to-web-readable-stream-0.2.0.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/node-readable-to-web-readable-stream_0.2.0_1739216251402_0.1368768403344487"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-10T19:37:31.588Z","publish_time":1739216251588,"_source_registry_name":"default","_cnpm_publish_time":1739216251588},"0.1.4":{"name":"node-readable-to-web-readable-stream","version":"0.1.4","description":"Convert Node Readable to Web API ReadableStream","type":"module","exports":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts'","compile-src":"tsc -p lib","compile":"yarn run compile-src","build":"yarn run clean && yarn run compile","test":"mocha","bun:test":"bun run --bun mocha"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.6.0","devDependencies":{"@types/chai":"^5.0.1","@types/mocha":"^10.0.10","@types/node":"^22.10.7","chai":"^5.1.2","del-cli":"^6.0.0","mocha":"^11.0.1","typescript":"^5.7.3"},"keywords":["Readable","Stream","Node.js","Node","ReadableStream","convert","WHATWG"],"repository":{"url":"git+https://github.com/Borewit/node-readable-to-web-readable-stream.git"},"_id":"node-readable-to-web-readable-stream@0.1.4","gitHead":"badbed1f66c41a9123448660251a543a6c9930be","bugs":{"url":"https://github.com/Borewit/node-readable-to-web-readable-stream/issues"},"homepage":"https://github.com/Borewit/node-readable-to-web-readable-stream#readme","_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"shasum":"69219fd93f52ffc06e05f39fd99985002a197976","size":2603,"noattachment":false,"key":"/node-readable-to-web-readable-stream/-/node-readable-to-web-readable-stream-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-readable-to-web-readable-stream/download/node-readable-to-web-readable-stream-0.1.4.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/node-readable-to-web-readable-stream_0.1.4_1738521883207_0.4864792606460242"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-02T18:44:43.414Z","publish_time":1738521883414,"_source_registry_name":"default","_cnpm_publish_time":1738521883414},"0.1.3":{"name":"node-readable-to-web-readable-stream","version":"0.1.3","description":"Convert Node Readable to Web API ReadableStream","type":"module","exports":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts'","compile-src":"tsc -p lib","compile":"yarn run compile-src","build":"yarn run clean && yarn run compile","test":"mocha"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.6.0","devDependencies":{"@types/chai":"^5.0.1","@types/mocha":"^10.0.10","@types/node":"^22.10.7","chai":"^5.1.2","del-cli":"^6.0.0","mocha":"^11.0.1","typescript":"^5.7.3"},"keywords":["Readable","Stream","Node.js","Node","ReadableStream","convert","WHATWG"],"repository":{"url":"git+https://github.com/Borewit/node-readable-to-web-readable-stream.git"},"_id":"node-readable-to-web-readable-stream@0.1.3","gitHead":"1fb5c4d53b0fbdfae98917ccca4dfedcfa64ae42","bugs":{"url":"https://github.com/Borewit/node-readable-to-web-readable-stream/issues"},"homepage":"https://github.com/Borewit/node-readable-to-web-readable-stream#readme","_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"shasum":"3371500d8e9af5e89574be9e220f113205a2ba71","size":2554,"noattachment":false,"key":"/node-readable-to-web-readable-stream/-/node-readable-to-web-readable-stream-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-readable-to-web-readable-stream/download/node-readable-to-web-readable-stream-0.1.3.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/node-readable-to-web-readable-stream_0.1.3_1738517962942_0.2163184906849731"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-02T17:39:23.138Z","publish_time":1738517963138,"_source_registry_name":"default","_cnpm_publish_time":1738517963138},"0.1.1":{"name":"node-readable-to-web-readable-stream","version":"0.1.1","description":"Convert Node Readable to Web API ReadableStream","type":"module","exports":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts'","compile-src":"tsc -p lib","compile":"yarn run compile-src","build":"yarn run clean && yarn run compile","test":"mocha"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.6.0","devDependencies":{"@types/chai":"^5.0.1","@types/mocha":"^10.0.10","@types/node":"^22.10.7","chai":"^5.1.2","del-cli":"^6.0.0","mocha":"^11.0.1","typescript":"^5.7.3"},"keywords":["Readable","Stream","Node.js","Node","ReadableStream","convert","WHATWG"],"repository":{"url":"git+https://github.com/Borewit/node-readable-to-web-readable-stream.git"},"_id":"node-readable-to-web-readable-stream@0.1.1","gitHead":"d7380213477817cb3bc35adf5910f31c39155d0b","bugs":{"url":"https://github.com/Borewit/node-readable-to-web-readable-stream/issues"},"homepage":"https://github.com/Borewit/node-readable-to-web-readable-stream#readme","_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"shasum":"eef6a50226a0292490179ab59a70de4b9fe0a5aa","size":2542,"noattachment":false,"key":"/node-readable-to-web-readable-stream/-/node-readable-to-web-readable-stream-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-readable-to-web-readable-stream/download/node-readable-to-web-readable-stream-0.1.1.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/node-readable-to-web-readable-stream_0.1.1_1738507936094_0.8601193433640206"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-02T14:52:16.294Z","publish_time":1738507936294,"_source_registry_name":"default","_cnpm_publish_time":1738507936294},"0.1.0":{"name":"node-readable-to-web-readable-stream","version":"0.1.0","description":"Convert Node Readable to Web API ReadableStream","type":"module","exports":"./lib/index.js","types":"./lib/index.d.ts","scripts":{"clean":"del-cli 'lib/**/*.js' 'lib/**/*.js.map' 'lib/**/*.d.ts'","compile-src":"tsc -p lib","compile":"yarn run compile-src","build":"yarn run clean && yarn run compile","test":"mocha"},"author":{"name":"Borewit","url":"https://github.com/Borewit"},"license":"MIT","packageManager":"yarn@4.6.0","devDependencies":{"@types/chai":"^5.0.1","@types/mocha":"^10.0.10","@types/node":"^22.10.7","chai":"^5.1.2","del-cli":"^6.0.0","mocha":"^11.0.1","typescript":"^5.7.3"},"keywords":["Readable","Stream","Node.js","Node","ReadableStream","convert","WHATWG"],"repository":{"url":"git+https://github.com/Borewit/node-readable-to-web-readable-stream.git"},"_id":"node-readable-to-web-readable-stream@0.1.0","gitHead":"6922d89042f9a0a3cc9d6a9cba0844e2431d9911","bugs":{"url":"https://github.com/Borewit/node-readable-to-web-readable-stream/issues"},"homepage":"https://github.com/Borewit/node-readable-to-web-readable-stream#readme","_nodeVersion":"22.13.0","_npmVersion":"10.9.2","dist":{"shasum":"1a259cfb51b0547377f77f95ddad1807e7046c2d","size":2403,"noattachment":false,"key":"/node-readable-to-web-readable-stream/-/node-readable-to-web-readable-stream-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/node-readable-to-web-readable-stream/download/node-readable-to-web-readable-stream-0.1.0.tgz"},"_npmUser":{"name":"borewit","email":"borewit@xs4all.nl"},"directories":{},"maintainers":[{"name":"borewit","email":"borewit@xs4all.nl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/node-readable-to-web-readable-stream_0.1.0_1738437613891_0.3474198297693687"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-01T19:20:14.063Z","publish_time":1738437614063,"_source_registry_name":"default","_cnpm_publish_time":1738437614063}},"readme":"[![CI](https://github.com/Borewit/node-readable-to-web-readable-stream/actions/workflows/ci.yml/badge.svg)](https://github.com/Borewit/node-readable-to-web-readable-stream/actions/workflows/ci.yml)\r\n[![NPM version](https://badge.fury.io/js/node-readable-to-web-readable-stream.svg)](https://npmjs.org/package/node-readable-to-web-readable-stream)\r\n[![NPM downloads](http://img.shields.io/npm/dm/node-readable-to-web-readable-stream.svg)](https://npmcharts.com/compare/node-readable-to-web-readable-stream?start=356&interval=7)\r\n\r\n# node-readable-to-web-readable-stream\r\n\r\n**node-readable-to-web-readable-stream** is a utility that converts a [Node.js stream.Readable](https://nodejs.org/api/stream.html#class-streamreadable) stream into a [Web API ReadableStream](https://developer.mozilla.org/docs/Web/API/ReadableStream).\r\nThis is particularly useful for integrating Node.js streams with web-native streaming APIs.\r\n\r\nTo convert in the opposite direction, see may use [readable-web-to-node-stream](https://github.com/Borewit/readable-web-to-node-stream) instead.\r\n\r\n## Installation\r\n\r\nInstall the package using npm:\r\n\r\n```bash\r\nnpm install node-readable-to-web-readable-stream\r\n```\r\n\r\nOr with yarn:\r\n\r\n```bash\r\nyarn add node-readable-to-web-readable-stream\r\n```\r\n\r\n## Usage\r\n\r\nYou can either convert to a [WHATWG / Web API ReadableStream](https://developer.mozilla.org/docs/Web/API/ReadableStream) byte mode, or default mode.\r\n\r\nHere's how you can use this utility to convert a [Node.js stream.Readable](https://nodejs.org/api/stream.html#class-streamreadable) stream into a byte [WHATWG / Web API ReadableStream](https://developer.mozilla.org/docs/Web/API/ReadableStream):\r\nIf you want to use a [ReadableStreamBYOBReader](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) you should use this method.\r\n\r\n```javascript\r\nimport {makeByteReadableStreamFromNodeReadable} from 'node-readable-to-web-readable-stream';\r\nimport {createReadStream} from 'fs';\r\n\r\n// Create a Node.js Readable stream\r\nconst nodeReadable = fs.createReadStream('example.txt');\r\n\r\n// Convert to a web ReadableStream\r\nconst webReadable = makeByteReadableStreamFromNodeReadable(nodeReadable);\r\n\r\n// Now you can use webReadable as a WHATWG ReadableStream in byte mode\r\n```\r\n\r\nIf you want to use a [ReadableStreamDefaultReader](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) you should use this method.\r\n```javascript\r\nimport {makeDefaultReadableStreamFromNodeReadable} from 'node-readable-to-web-readable-stream';\r\nimport {createReadStream} from 'fs';\r\n\r\n// Create a Node.js Readable stream\r\nconst nodeReadable = fs.createReadStream('example.txt');\r\n\r\n// Convert to a web ReadableStream\r\nconst webReadable = makeDefaultReadableStreamFromNodeReadable(nodeReadable);\r\n\r\n// Now you can use webReadable as a WHATWG default ReadableStream\r\n```\r\n\r\n\r\n## Compatibility\r\n\r\nThis is an ECMAScript Module (ESM).\r\nCross-platform compliant:\r\n- Node.js ≥ 18\r\n- Bum ≥ 1.2\r\n- Modern web browsers\r\n\r\nYou can load the project with `require` in Node.js ≥ 22\r\n\r\n## Features\r\n- Supports stream backpressure\r\n- BYOB (Bring Your Own Buffer) compliant\r\n\r\n## API\r\n\r\n### `toWebReadableStream(nodeReadable, options)`\r\n\r\n- **Parameters:**\r\n  - `nodeReadable` ([Node.js stream.Readable](https://nodejs.org/api/stream.html#class-streamreadable)): The Node.js **Readable** stream to convert.\r\n  - `options` Optional: `{highWaterMark?: number}`, high-water mark in bytes, default 16 kB.\r\n\r\n- **Returns:**\r\n  - A [WHATWG / Web API ReadableStream](https://developer.mozilla.org/docs/Web/API/ReadableStream).\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE.txt) file for details.\r\n","_attachments":{},"homepage":"https://github.com/Borewit/node-readable-to-web-readable-stream#readme","bugs":{"url":"https://github.com/Borewit/node-readable-to-web-readable-stream/issues"},"license":"MIT"}