import { toFileUrl } from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/path.js";
Converts the given path to a file URL if it's not one already.
Examples
Example 1
Example 1
import { toFileUrl } from "@ayonli/jsext/path";
console.log(toFileUrl("foo/bar")); // "file:///foo/bar"
console.log(toFileUrl("c:\\foo\\bar")); // "file:///c:/foo/bar"