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

x/sane_fmt/index.ts>fromWindowsPath

Opinionated code formatter for TypeScript and JavaScript
Go to Latest
function fromWindowsPath
import { fromWindowsPath } from "https://deno.land/x/sane_fmt@0.16.0/index.ts";

Convert a Windows path to a WASI compatible path

Type Parameters

WasiAbsolutePathPrefix extends string

Return type of getAbsolutePrefix

Parameters

path: string

Windows path

Function that resolves a WASI compatible path prefix from a Windows device letter

Returns

string

WASI compatible path