Skip to main content
Deno 2 is finally 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.28.3/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