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

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

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

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

Examples

Example 1

const path = slashWin("C:/file");

Parameters

path: string

Returns

string