MCPcopy Create free account
hub / github.com/nodejs/node / stringPercentDecode

Function stringPercentDecode

deps/undici/src/lib/web/fetch/data-url.js:142–148  ·  view source on GitHub ↗

@param {string} input

(input)

Source from the content-addressed store, hash-verified

140// https://url.spec.whatwg.org/#string-percent-decode
141/** @param {string} input */
142function stringPercentDecode (input) {
143 // 1. Let bytes be the UTF-8 encoding of input.
144 const bytes = encoder.encode(input)
145
146 // 2. Return the percent-decoding of bytes.
147 return percentDecode(bytes)
148}
149
150/**
151 * @param {number} byte

Callers 1

dataURLProcessorFunction · 0.70

Calls 2

encodeMethod · 0.80
percentDecodeFunction · 0.70

Tested by

no test coverage detected