Skip to content
0

katanakit-js / useJoinPath

Function: useJoinPath() ​

ts
function useJoinPath(...segments): Promise<string>;

Defined in: src/infrastructure/filesystem/path.service.ts:98

Joins path segments without resolving against process.cwd().

Parameters ​

ParameterTypeDescription
...segmentsstring[]Path segments to join.

Returns ​

Promise<string>

The joined (possibly relative) path.

Example ​

ts
await useJoinPath("data", "books.json"); // "data/books.json"

Released under the MIT License.