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

x/acorn/utils.ts>decodeComponent

A focused RESTful server framework for Deno 🌰🦕
Go to Latest
function decodeComponent
import { decodeComponent } from "https://deno.land/x/acorn@1.1.0/utils.ts";

Safely decode a URI component, where if it fails, instead of throwing, just returns the original string.

Parameters

text: string