Path
Extends:
TinyType → Path
Tests:
- 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
- Path can split an absolute path
- Path can split a relative path
- Path can resolve two paths
- Path knows the root directory
- Path
Static Method Summary
Static Public Methods | ||
public static |
from(segments: UNKNOWN): * |
|
public static |
fromJSON(v: string): * |
|
public static |
fromSanitisedString(value: string): * |
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
value: string |
Method Summary
Public Methods | ||
public |
basename(): string |
|
public |
directory(): * |
|
public |
isAbsolute(): boolean |
|
public |
|
|
public |
|
|
public |
|
|
public |
split(): UNKNOWN |
Static Public Methods
public static from(segments: UNKNOWN): * source
Params:
Name | Type | Attribute | Description |
segments | UNKNOWN |
Returns:
* |
public static fromJSON(v: string): * source
Params:
Name | Type | Attribute | Description |
v | string |
Returns:
* |
public static fromSanitisedString(value: string): * source
Params:
Name | Type | Attribute | Description |
value | string |
Returns:
* |