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

Function stringPercentDecode

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 2

dataURLProcessorFunction · 0.85
data-uri.jsFile · 0.85

Calls 1

percentDecodeFunction · 0.85

Tested by

no test coverage detected