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

x/oak/utils/decode.ts>decode

A middleware framework for handling HTTP with Deno, Node, Bun and Cloudflare Workers 🐿️ 🦕
Very Popular
Latest
function decode
import { decode } from "https://deno.land/x/oak@v17.1.3/utils/decode.ts";

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

Parameters

pathname: string

Returns

string