Module

x/proc/site/scripts/deps/path.ts>toFileUrl

A better way to work with processes in Deno.
Go to Latest
function toFileUrl
import { toFileUrl } from "https://dotland.deno.dev/x/proc@0.21.9/site/scripts/deps/path.ts";

Converts a path string to a file URL.

import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix/to_file_url.ts";

toFileUrl("/home/foo"); // new URL("file:///home/foo")

Parameters

path: string

to convert to file URL