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.
interface WritableStream
implements EventEmitter
import { type WritableStream } from "https://deno.land/std@0.167.0/node/_global.d.ts";

Properties

writable: boolean

Methods

write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean
write(
str: string,
encoding?: BufferEncoding,
cb?: (err?: Error | null) => void,
): boolean
end(cb?: () => void): void
end(data: string | Uint8Array, cb?: () => void): void
end(
str: string,
encoding?: BufferEncoding,
cb?: () => void,
): void