Path
Extends:
TinyType → Path
Tests:
- Path can split an absolute path
- Path can split a relative path
- Path can resolve two paths
- Path knows the root directory
- Path
- Path when used across different operating systems produces the same result no matter what path it's instantiated with
- Path when used across different operating systems exposes the normalised path string
- Path when used across different operating systems splits the same
- Path can be serialised and deserialised
- Path can join path components into a single path
- Path can be instantiated from path segments
Static Method Summary
Static Public Methods | ||
public static |
|
|
public static |
|
|
public static |
fromSanitisedString(value: string): Path |
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
value: string |
Method Summary
Public Methods | ||
public |
basename(): string |
|
public |
|
|
public |
isAbsolute(): boolean |
|
public |
|
|
public |
|
|
public |
|
|
public |
split(): UNKNOWN |
Static Public Methods
public static from(segments: UNKNOWN): Path source
Params:
Name | Type | Attribute | Description |
segments | UNKNOWN |