MCPcopy
hub / github.com/sindresorhus/query-string / strictUriEncode

Function strictUriEncode

base.js:8–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7// eslint-disable-next-line unicorn/prefer-code-point
8const strictUriEncode = string => encodeURIComponent(string).replaceAll(/[!'()*]/g, x => `%${x.charCodeAt(0).toString(16).toUpperCase()}`);
9
10const encodeFragmentIdentifier = Symbol('encodeFragmentIdentifier');
11

Callers 1

encodeFunction · 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…