Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/std/io/writers.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.23.0/std/io/writers.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>