# formatFilePath

`function` in `utils` · v0.8.6-next.0

<https://docs.seedcord.org/packages/utils/0.8.6-next.0/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`
- `options?` `FormatFileOptions`

Returns `string`.
