Skip to content

[I] ResolveModuleHost

readFile(path): Promise<string>;

Read a utf-8 encoded file.

ParameterType
pathstring

Promise<string>


realpath(path): Promise<string>;

Resolve the real path for the current host.

ParameterType
pathstring

Promise<string>


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

Get information about the given path

ParameterType
pathstring

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