isAbsolute
Import from @varavel/vdl-plugin-sdk/utils/paths.
function isAbsolute(path): boolean;
Checks whether a path is absolute.
Parameters
| Parameter | Type | Description |
|---|---|---|
path | string | Path to inspect. |
Returns
boolean
true when path is absolute, otherwise false.
Example
isAbsolute("/generated/models/user.ts");
// returns true
See
Powered by pathe (MIT License): https://github.com/unjs/pathe