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

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

Simplify processing for Deno.
Go to Latest
function slashU
import { slashU } from "https://deno.land/x/simple_utility@v2.0.10/src/deno/path.ts";

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

Examples

Example 1

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

Parameters

path: string

Returns

string