UseJoinPath
katanakit-js / useJoinPath
Function: useJoinPath()
Section titled “Function: useJoinPath()”function useJoinPath(...segments): Promise<string>;Defined in: infrastructure/filesystem/path.service.ts:98
Joins path segments without resolving against process.cwd().
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
…segments |
string[] |
Path segments to join. |
Returns
Section titled “Returns”Promise<string>
The joined (possibly relative) path.
Example
Section titled “Example”await useJoinPath("data", "books.json"); // "data/books.json"