Skip to content

toPosixPath

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

Import:

import { toPosixPath } from 'obsidian-dev-utils/path';

Signature:

function toPosixPath(path: string): string

Parameters:

ParameterTypeDescription
pathstringThe path to convert.

Returns: string — The POSIX-style path.