Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Resource

Hierarchy

  • Resource

Implements

Constructors

constructor

  • new Resource(baseDir: string, path?: string): Resource

Properties

encoding

encoding: string = "UTF-8"

Accessors

contentLength

  • get contentLength(): number

lastModified

  • get lastModified(): number

name

  • get name(): string

Methods

createRelative

exists

  • exists(): boolean

getContent

  • getContent(): Buffer

getContentAsJSON

  • getContentAsJSON(): Record<string, unknown>

getPath

  • getPath(): string

getSubResources

getURL

  • getURL(): any

isDir

  • isDir(): boolean

isFile

  • isFile(): boolean

isURL

  • isURL(): boolean

Generated using TypeDoc