Skip to content

UseJoinPath

katanakit-js / useJoinPath

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

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

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

Parameter Type Description
…segments string[] Path segments to join.

Promise<string>

The joined (possibly relative) path.

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