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

Function encode

base.js:260–266  ·  view source on GitHub ↗
(value, options)

Source from the content-addressed store, hash-verified

258}
259
260function encode(value, options) {
261 if (options.encode) {
262 return options.strict ? strictUriEncode(value) : encodeURIComponent(value);
263 }
264
265 return value;
266}
267
268function decode(value, options) {
269 if (options.decode) {

Callers 2

encoderForArrayFormatFunction · 0.85
stringifyFunction · 0.85

Calls 1

strictUriEncodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…