Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/next_php/src/deps.ts>path.fromFileUrl

NextPHP is a web framework enabling you to write PHP in JavaScript.
Latest
function path.fromFileUrl
import { path } from "https://deno.land/x/next_php@1.1.2/src/deps.ts";
const { fromFileUrl } = path;

Converts a file URL to a path string.

import { fromFileUrl } from "https://deno.land/std@0.224.0/path/posix.ts";

fromFileUrl("file:///home/foo"); // "/home/foo"

Parameters

url: URL | string

of a file URL

Returns

string