Skip to main content
Module

std/path/posix.ts>fromFileUrl

Deno standard library
Go to Latest
function fromFileUrl
import { fromFileUrl } from "https://deno.land/std@0.139.0/path/posix.ts";

Converts a file URL to a path string.

     import { fromFileUrl } from "./posix.ts";
     fromFileUrl("file:///home/foo"); // "/home/foo"

Parameters

url: string | URL

of a file URL

Returns

string