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

x/dxx/src/lib/$shared.ts>ensureAsURL

🚀 (Deno) enhanced executor
Latest
function ensureAsURL
import { ensureAsURL } from "https://deno.land/x/dxx@rf/src/lib/$shared.ts";

Ensure "path" is a valid URL (by conversion if needed) or panic.

Parameters

path: string | URL

• path/URL-string (may already be in URL file format [ie, 'file://...']) or URL