PurePath.asPosix() method
pathlib-ts > PurePath > asPosix
PurePath.asPosix() method
Section titled “PurePath.asPosix() method”Returns the string representation of the path with forward (/) slashes, regardless of platform.
Signature:
asPosix(): string;Returns:
string
The path rendered with / separators.
Remarks
Section titled “Remarks”Useful when emitting URLs or interoperating with tooling that expects POSIX separators. On POSIX hosts the string is returned unchanged; on Windows, backslashes are converted.