Rush StackShopBlogEvents
Skip to main content

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

ParameterTypeDescription
inputPathstring

Returns:

string