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

x/mesozoic/lib/sources/file.ts>IFile

A generic build system for Deno web apps
Latest
interface IFile
import { type IFile } from "https://deno.land/x/mesozoic@v1.3.10/lib/sources/file.ts";

Methods

filename(): string
dirname(): string
path(): string
originalPath(): Path
relativePath(): string
url(): URL
root(): string
extension(): string
read(): Promise<string>
readAsJson<T = unknown>(): Promise<T>
readBytes(): Promise<Uint8Array>
write(content: string | Uint8Array, overwrite?: boolean): Promise<void>
writeJson(value: any, pretty?: boolean): Promise<void>
copyTo(to: string, filePath?: string): Promise<IFile>
remove(): Promise<boolean>
rename(newFilename: string): Promise<string>
clone(): IFile
contentHash(): Promise<string>