Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/url.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.114.0/node/url.ts";

Functions

This function ensures the correct decodings of percent-encoded characters as well as ensuring a cross-platform valid absolute path string.

The URL object has both a toString() method and href property that return string serializations of the URL. These are not, however, customizable in any way. This method allows for basic customization of the output.

This function ensures that filepath is resolved absolutely, and that the URL control characters are correctly encoded when converting into a File URL.