Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class StringDecoder
import { StringDecoder } from "https://deno.land/std@0.109.0/node/string_decoder.ts";

Constructors

new
StringDecoder(encoding?: string)

Properties

encoding: string
end: (buf?: Buffer) => string
fillLast: ((buf: Buffer) => string | undefined) | undefined
lastChar: Buffer
lastNeed: number
lastTotal: number
text: (buf: Buffer, n: number) => string
write: (buf: Buffer) => string