# formatFilePath

`function` in `utils` · v0.8.0-next.6

<https://docs.seedcord.org/packages/utils/0.8.0-next.6/functions/format-file-path>

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.

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

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.

Parameters.

- `filePath` `string` — The file path to format.
- `options?` `FormatFileOptions` — Formatting options.

Returns `string`.
