Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

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

Examples

Example 1

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

Parameters

path: string

Returns

string