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

question: similar module, but for handling binary data streams? #173

Open
AVVS opened this issue May 16, 2023 · 0 comments
Open

question: similar module, but for handling binary data streams? #173

AVVS opened this issue May 16, 2023 · 0 comments

Comments

@AVVS
Copy link
Contributor

AVVS commented May 16, 2023

Love the module <3

Recently was playing around and tried to get this to write compressed files, which, obviously, did not work as utf8 input is expected. Would anyone be able to point me in the right direction?
Currently the best thing i have is a simple pipeline of zlib.create[compressor of choice] -> fs.createWriteStream, but it doesn't perform any sophisticated fs error handling, data buffering for more efficient writes, etc.

In case there is nothing better than the naive approach mentioned - would it be worth spending time to try and add support for binary data being written here or is it out of scope of the project?

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

1 participant