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.
class WriteStreamClass
extends Writable
import { WriteStreamClass } from "https://deno.land/std@0.146.0/node/internal/fs/streams.ts";

Constructors

new
WriteStreamClass(path: string | Buffer, opts?: WriteStreamOptions)

Properties

bytesWritten: number
fd: number | null
optional
flags: openFlags
optional
mode: number
path: string | Buffer
pos: number
[kFs]
[kIsPerformingIO]: boolean

Methods

_construct(callback: (err?: Error) => void)
_destroy(err: Error, cb: (err?: Error | null) => void)
_write(
data: Buffer,
_encoding: string,
cb: (err?: Error | null) => void,
)