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

x/deno/cli/tsc/dts/lib.es5.d.ts>encodeURIComponent

A modern runtime for JavaScript and TypeScript.
Go to Latest
function encodeURIComponent
import { encodeURIComponent } from "https://deno.land/x/deno@v1.40.5/cli/tsc/dts/lib.es5.d.ts";

Encodes a text string as a valid component of a Uniform Resource Identifier (URI).

Parameters

uriComponent: string | number | boolean

A value representing an unencoded URI component.

Returns

string