join
Import from @varavel/vdl-plugin-sdk/utils/paths.
function join(...parts): string;
Joins path segments using deterministic forward-slash normalization.
This is a thin wrapper around pathe.join, which keeps behavior consistent
across platforms and normalizes path separators to /.
Parameters
| Parameter | Type | Description |
|---|---|---|
...parts | string[] | Path segments to join. |
Returns
string
The normalized joined path.
Example
join("generated", "models", "user.ts");
// returns "generated/models/user.ts"
See
Powered by pathe (MIT License): https://github.com/unjs/pathe