StringDecoder

A Node.js class that turns a series of Buffer chunks into text without breaking characters that are split across chunk boundaries.

In more detail

It holds back the incomplete bytes at the end of a chunk until the rest arrive. Streams use it when you call setEncoding().

Related terms

Taught in

References