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

x/denoexec/deps.ts>io.StringWriter

A higher level wrapper around https://doc.deno.land/builtin/stable#Deno.run
Latest
class io.StringWriter
implements Writer, WriterSync
import { io } from "https://deno.land/x/denoexec@v1.1.5/deps.ts";
const { StringWriter } = io;

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>
writeSync(p: Uint8Array): number