Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

you know that there is a built in option for this... right? #724

Open
jimmywarting opened this issue Sep 14, 2022 · 3 comments
Open

you know that there is a built in option for this... right? #724

jimmywarting opened this issue Sep 14, 2022 · 3 comments

Comments

@jimmywarting
Copy link

stream.Readable.fromWeb(readableStream[, options])

https://nodejs.org/dist/latest-v18.x/docs/api/stream.html#streamreadablefromwebreadablestream-options

@rektide
Copy link

rektide commented Oct 2, 2022

This is still potentially useful for projects like https://github.com/isomorphic-git/lightning-fs , which are trying to ponyfill out a Node.js fs implementation from within the browser.

AFAIK there's no way to use any Node.js code in the browser. It'd be awesome if some of the Node.js JS implementations were available as standalone modules via npm.

@ecofi
Copy link

ecofi commented Mar 14, 2024

@jimmywarting this module is helpful for browser bundler such as webpack because module "readable-stream" has not yet implemented the latest Readable Nodejs API.

@faridnsh
Copy link

stream.Readable.fromWeb is experimental and it could change between node version changes. This project provides a stable interface to it that you don't have to worry about when changing between node versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants