Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/node-core-library > Path > convertToSlashes

Path.convertToSlashes() method

Replaces Windows-style backslashes with POSIX-style slashes.

Signature:

static convertToSlashes(inputPath: string): string;

Parameters

ParameterTypeDescription
inputPathstring

Returns:

string

Remarks

POSIX is a registered trademark of the Institute of Electrical and Electronic Engineers, Inc.