Home > @rushstack/node-core-library > Path > convertToPlatformDefault
Path.convertToPlatformDefault() method
Replaces slashes or backslashes with the appropriate slash for the current operating system.
Signature:
static convertToPlatformDefault(inputPath: string): string;
Parameters
Parameter | Type | Description |
---|---|---|
inputPath | string |
Returns:
string