Skip to content

[I] ResolveModuleHost

Methods

readFile()

readFile(path): Promise<string>

Read a utf-8 encoded file.

Parameters

ParameterType
pathstring

Returns

Promise<string>


realpath()

realpath(path): Promise<string>

Resolve the real path for the current host.

Parameters

ParameterType
pathstring

Returns

Promise<string>


stat()

stat(path): Promise<{
isDirectory: boolean;
isFile: boolean;
}>

Get information about the given path

Parameters

ParameterType
pathstring

Returns

Promise<{ isDirectory: boolean; isFile: boolean; }>