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

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

A modern runtime for JavaScript and TypeScript.
Latest
function encodeURI
import { encodeURI } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.es5.d.ts";

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

Parameters

uri: string

A value representing an unencoded URI.

Returns

string