[I] ResolveModuleHost
Methods
Section titled “Methods”readFile()
Section titled “readFile()”readFile(path): Promise<string>;
Read a utf-8 encoded file.
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
path | string |
Returns
Section titled “Returns”Promise
<string
>
realpath()
Section titled “realpath()”realpath(path): Promise<string>;
Resolve the real path for the current host.
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
path | string |
Returns
Section titled “Returns”Promise
<string
>
stat()
Section titled “stat()”stat(path): Promise<{ isDirectory: boolean; isFile: boolean;}>;
Get information about the given path
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
path | string |
Returns
Section titled “Returns”Promise
<{
isDirectory
: boolean
;
isFile
: boolean
;
}>