Skip to main content
Module

x/sane_fmt/wasi-path.ts>fromWindowsPath

Opinionated code formatter for TypeScript and JavaScript
Go to Latest
function fromWindowsPath
import { fromWindowsPath } from "https://deno.land/x/sane_fmt@0.13.0/wasi-path.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