| Crates.io | deno_url |
| lib.rs | deno_url |
| version | 0.217.0 |
| created_at | 2021-03-12 20:56:32.388448+00 |
| updated_at | 2025-09-24 19:55:08.627554+00 |
| description | URL API implementation for Deno |
| homepage | |
| repository | https://github.com/denoland/deno |
| max_upload_size | |
| id | 367916 |
| size | 102,655 |
This crate implements the URL, and URLPattern APIs for Deno.
URL Spec: https://url.spec.whatwg.org/ URLPattern Spec: https://wicg.github.io/urlpattern/
From javascript, include the extension's source, and assign URL, URLPattern,
and URLSearchParams to the global scope:
import * as url from "ext:deno_url/00_url.js";
import * as urlPattern from "ext:deno_url/01_urlpattern.js";
Object.defineProperty(globalThis, "URL", {
value: url.URL,
enumerable: false,
configurable: true,
writable: true,
});
Object.defineProperty(globalThis, "URLPattern", {
value: url.URLPattern,
enumerable: false,
configurable: true,
writable: true,
});
Object.defineProperty(globalThis, "URLSearchParams", {
value: url.URLSearchParams,
enumerable: false,
configurable: true,
writable: true,
});
Then from rust, provide deno_url::deno_url::init() in the extensions field
of your RuntimeOptions
deno_webidl crateFollowing ops are provided, which can be accessed through Deno.ops: