x/sane_fmt/wasi-path.ts

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?s=fromWindowsPath";

Convert a Windows path to a WASI compatible path

Type Parameters

WasiAbsolutePathPrefix extends string[src]

Return type of getAbsolutePrefix

Parameters

path: string[src]

Windows path

getAbsolutePrefix: WindowsDeviceMapper<WasiAbsolutePathPrefix>[src]

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

Returns

string[src]

WASI compatible path