Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/std/io/mod.ts>StringWriter

A modern runtime for JavaScript and TypeScript.
Go to Latest
class StringWriter
implements Writer
import { StringWriter } from "https://deno.land/x/deno@v0.28.0/std/io/mod.ts";

Writer utility for buffering string chunks

Constructors

new
StringWriter(base?: string)

Properties

private
byteLength: number
private
cache: string | undefined
private
chunks: Uint8Array[]

Methods

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