-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.
Description
- Version: all
- Platform: n/a
- Subsystem: stream
It would be nice if Writable
streams had a configuration option to decode buffers to strings (using a StringDecoder
instance). This is handy for example when writing a Transform
stream that takes utf8 input.
Currently you have to set up your own StringDecoder
instance and write the data through that first, which is kind of annoying. For non-multibyte encodings this isn't necessary though since you can just chunk.toString()
inside your _write()
/_transform()
handler.
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.