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

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

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

Converts a path string to a file URL.

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

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

Parameters

path: string

to convert to file URL