Interface PathUtils<P>
Properties
delimiter
delimiter: string
Methods
basename
- basename(p: P, ext?: undefined | string): Filename
-
Parameters
-
p: P
-
Optional ext: undefined | string
contains
- contains(from: P, to: P): P | null
-
Parameters
Returns P
|
null
extname
-
Parameters
Returns string
isAbsolute
- isAbsolute(path: P): boolean
-
Parameters
Returns boolean
relative
- relative(from: P, to: P): P
resolve
- resolve(...pathSegments: Array<P | Filename>): P
-
Parameters
-
Rest ...pathSegments: Array<P | Filename>
Returns P