Skip to main content
Deno 2 is finally 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.9/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