Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/simple_utility/src/path.deno.ts>slashUnix

Useful snippet collection.
Go to Latest
function slashUnix
import { slashUnix } from "https://deno.land/x/simple_utility@v0.5.2/src/path.deno.ts";

Convert from backslash to slash. Useful for converting from Windows path to UNIX path.

Examples

Example 1

const path = slashUnix("C:\\file");

Parameters

path: string

Returns

string