Skip to main content
Version: Next 🚧

[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<object>

Get information about the given path

Parameters

ParameterType
pathstring

Returns

Promise<object>

NameType
isDirectoryboolean
isFileboolean