Skip to content
Functionutilsv0.8.17

formatFilePath

Formats a file path relative to the current working directory.

A path outside the working directory, or any path on a runtime without process, is returned unchanged.

formatFilePath(
    filePath: string,
    options?: FormatFileOptions
): string