MCPcopy Create free account
hub / github.com/node-modules/utility / encodeURIComponent

Function encodeURIComponent

src/web.ts:32–38  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

30 * @return {String} URL encode string.
31 */
32export function encodeURIComponent(text: string): string {
33 try {
34 return global.encodeURIComponent(text);
35 } catch {
36 return text;
37 }
38}
39
40/**
41 * Safe decodeURIComponent, won't throw any error.

Callers 2

string.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…