String Decoder

The StringDecoder class provides an API for decoding Buffer objects into strings, preserving multi-byte UTF-8 and UTF-16 characters across chunk boundaries.

Supported encodings: utf8, utf16le, latin1, base64, hex, ascii.

Module: node:string_decoder Support: Experimental Since: 1.1.0 Docs: Node.js Docs See also: https://nodejs.org/api/string_decoder.html

Properties

🟢 StringDecoder
The `StringDecoder` constructor.