Skip to content

toPosixPath

Converts a given path to a POSIX-style path by replacing backslashes with forward slashes.

Import:

import { toPosixPath } from '@mnaoumov/typescript-lib/path';

Signature:

function toPosixPath(path: string): string

Parameters:

Parameter Type Description
path string The path to convert.

Returns: string — The POSIX-style path.