Module

std/io/mod.ts>StringWriter

Deno standard library
Go to Latest
class StringWriter
implements Writer, WriterSync
import { StringWriter } from "https://dotland.deno.dev/std@0.152.0/io/mod.ts";

Writer utility for buffering string chunks

Constructors

new
StringWriter(base?: string)

Methods

toString(): string
write(p: Uint8Array): Promise<number>
writeSync(p: Uint8Array): number