Node.js module
string_decoder
The 'node:string_decoder' module provides the StringDecoder class, which decodes Buffer data into strings while preserving multi-byte UTF-8 and other encodings across buffer boundaries.
It ensures that decoded strings are not truncated or malformed when chunked data arrives in separate buffers.
Fully supported in Bun
Fully implemented. 100% of Node.js's test suite passes.