Skip to main content

BettererFileResolver.resolve()

API > @betterer/betterer > BettererFileResolver > resolve

Resolve a file path relative to the baseDirectory.

Signature

resolve(...pathSegments: Array<string>): string;

Parameters

ParameterTypeDescription
pathSegmentsArray<string>String path segments to resolve. Works the same was as 'path.resolve()' but with baseDirectory as the first argument.

Returns

string

The resolved path.