Options
All
  • Public
  • Public/Protected
  • All
Menu

Convenient support for all File implementations

Hierarchy

Implements

Index

Properties

Readonly cache

cache: Record<string, object>

Abstract path

path: string

Accessors

dirty

  • get dirty(): boolean

extension

  • get extension(): string

name

  • get name(): string

Methods

flush

  • flush(): Promise<this>

Abstract getContent

  • getContent(encoding?: string): Promise<string>

Abstract getContentBuffer

  • getContentBuffer(): Promise<Buffer>

Abstract getContentSync

  • getContentSync(): string

Protected invalidateCache

  • invalidateCache(): this

Abstract isBinary

  • isBinary(): Promise<boolean>

Abstract isExecutable

  • isExecutable(): Promise<boolean>

Abstract isReadable

  • isReadable(): Promise<boolean>

recordAction

rename

  • rename(name: string): Promise<this>

replace

  • replace(re: RegExp, replacement: string): Promise<this>

replaceAll

  • replaceAll(oldLiteral: string, newLiteral: string): Promise<this>

Abstract setContent

  • setContent(content: string): Promise<this>

Abstract setContentSync

  • setContentSync(content: string): this

Abstract setPath

  • setPath(path: string): Promise<this>

Generated using TypeDoc