Constructors
constructor
-
Parameters
-
-
Optional cacheDir: undefined | string
Properties
Private cacheDir
cacheDir: string | null
Methods
fetch
- fetch(url: string, encoding?: string): Promise<string>
-
Parameters
-
url: string
-
Default value encoding: string = "utf8"
Returns Promise<string>
The promised contents
getCacheDir
- getCacheDir(): string | null
setCacheDir
- setCacheDir(dir?: undefined | string): void
-
Parameters
-
Optional dir: undefined | string
Returns void
Fetches contents of an external URL