Skip to main content
Module

x/dax/src/path.ts>FsFileWrapper

Cross platform shell tools for Deno inspired by zx.
Very Popular
Go to Latest
class FsFileWrapper
implements [Deno.FsFile]
import { FsFileWrapper } from "https://deno.land/x/dax@0.34.0/src/path.ts";

Constructors

new
FsFileWrapper(file: Deno.FsFile)

Properties

readonly
inner: Deno.FsFile

Gets the inner Deno.FsFile that this wraps.

readonly
readable: ReadableStream<Uint8Array>
readonly
rid: number
readonly
writable: WritableStream<Uint8Array>

Methods

close(): void
read(p: Uint8Array): Promise<number | null>
readSync(p: Uint8Array): number | null
seek(offset: number, whence: Deno.SeekMode): Promise<number>
seekSync(offset: number, whence: Deno.SeekMode): number
stat(): Promise<Deno.FileInfo>
truncate(len?: number | undefined): Promise<void>
truncateSync(len?: number | undefined): void
write(p: Uint8Array): Promise<number>
writeBytes(bytes: Uint8Array): Promise<this>

Writes the provided bytes to the file.

writeBytesSync(bytes: Uint8Array): this

Synchronously writes the provided bytes to the file.

writeSync(p: Uint8Array): number
writeText(text: string): Promise<this>

Writes the provided text to this file.

writeTextSync(text: string): this

Synchronously writes the provided text to this file.