{"_id":"@marmelab/decode-uri-component","_rev":"3-5bc7af4232c25a2df721da2856512739","name":"@marmelab/decode-uri-component","dist-tags":{"latest":"0.2.3"},"versions":{"0.0.0-stage":{"name":"@marmelab/decode-uri-component","version":"0.0.0-stage","_id":"@marmelab/decode-uri-component@0.0.0-stage","stub":true,"maintainers":[{"name":"thiery","email":"thiery@marmelab.com"}],"dist":{"shasum":"55a94a41deefe92e68c31cdcc1b984e9d539a3c3","tarball":"https://registry.npmjs.org/@marmelab/decode-uri-component/-/decode-uri-component-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-XO84KA5SRp/HYf8PvXNfpyyXgggJWDGVEGaUp3O4UiiMUaH8mXukSj+rs4lwZ1O4NCp6/97c7Zc9Q7Jv3Vr8Fw==","signatures":[{"sig":"MEQCIDH7Hm0iBS6q844xhC7H5EyuJzr9t1ccVRHU5TRRdQNiAiA4DobCvslSTNCnjeNy6QYErNeFd3RvU9OveL+/9Qk42w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":352},"_npmUser":{"name":"thiery","email":"thiery@marmelab.com"},"description":"Temporary package placeholder for staged publishing","directories":{}},"0.2.3":{"_id":"@marmelab/decode-uri-component@0.2.3","bugs":{"url":"https://github.com/marmelab/decode-uri-component/issues"},"dist":{"shasum":"bfda8035756a67756f81cb58015380f6e4013da1","tarball":"https://registry.npmjs.org/@marmelab/decode-uri-component/-/decode-uri-component-0.2.3.tgz","fileCount":4,"integrity":"sha512-BjmEp5HrPGBkEAynNFiuVN7j+usGzVLVsfX6Fhd5HJEnt9ZVY4WxNg+hRI8Rpa5TTJytKBkhBtR5w7RE2fGRXA==","signatures":[{"sig":"MEUCIQD1+3DSyLKX1Vd4a87iP9QIJQWpRdmoEbzUpImaOSsPFwIgIdOkQcQPOe3Ly5AaxIvYY9BdqlX20k4pxpYgLWO+cw0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIG6pHKmIPimtccKyw1wi5xtxfqN72VENzgJH5Ak9e36nAiEAyu2NaKYT7aMkHzvw7JO3AhB558KT686oRawjK+o7tHE="}],"unpackedSize":7260},"name":"@marmelab/decode-uri-component","author":{"url":"github.com/SamVerschueren","name":"Sam Verschueren","email":"sam.verschueren@gmail.com"},"engines":{"node":">=0.10"},"gitHead":"d3753f4681a2d76e5d1aefc72b874530fb0c8b79","license":"MIT","scripts":{"test":"xo && nyc ava","coveralls":"nyc report --reporter=text-lcov | coveralls"},"version":"0.2.3","_npmUser":{"name":"thiery","email":"thiery@marmelab.com"},"homepage":"https://github.com/marmelab/decode-uri-component#readme","keywords":["decode","uri","component","decodeuricomponent","components","decoder","url"],"repository":{"url":"git+https://github.com/marmelab/decode-uri-component.git","type":"git"},"_npmVersion":"10.8.2","description":"A better decodeURIComponent","directories":{},"maintainers":[{"name":"zaninottof","email":"info@marmelab.com"},{"name":"fzaninotto","email":"fzaninotto@gmail.com"},{"name":"thiery","email":"thiery@marmelab.com"}],"_nodeVersion":"20.20.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.16.0","ava":"^0.17.0","nyc":"^10.3.2","coveralls":"^2.13.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/decode-uri-component_0.2.3_1793798439494_0.8861355529619188"}}},"time":{"created":"2026-11-04T13:19:23.467Z","modified":"2026-11-04T13:20:39.899Z","0.0.0-stage":"2026-11-04T13:19:23.467Z","0.2.3":"2026-11-04T13:20:39.570Z"},"description":"A better decodeURIComponent","maintainers":[{"name":"zaninottof","email":"info@marmelab.com"},{"name":"fzaninotto","email":"fzaninotto@gmail.com"},{"name":"thiery","email":"thiery@marmelab.com"}],"readme":"# @marmelab/decode-uri-component\n\n![CI](https://github.com/marmelab/decode-uri-component/workflows/CI/badge.svg)\n\n> A better [decodeURIComponent](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent)\n\nFork of [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) 0.2.2 with the fix for [CVE-2026-45822](https://github.com/advisories/GHSA-vcc3-ghjq-m6fr) backported.\n\n\n## Why?\n\n- Decodes `+` to a space.\n- Converts the [BOM](https://en.wikipedia.org/wiki/Byte_order_mark) to a [replacement character](https://en.wikipedia.org/wiki/Specials_(Unicode_block)#Replacement_character) `�`.\n- Does not throw with invalid encoded input.\n- Decodes as much of the string as possible.\n\n\n## Install\n\n```\n$ npm install --save @marmelab/decode-uri-component\n```\n\n\n## Usage\n\n```js\nconst decodeUriComponent = require('@marmelab/decode-uri-component');\n\ndecodeUriComponent('%25');\n//=> '%'\n\ndecodeUriComponent('%');\n//=> '%'\n\ndecodeUriComponent('st%C3%A5le');\n//=> 'ståle'\n\ndecodeUriComponent('%st%C3%A5le%');\n//=> '%ståle%'\n\ndecodeUriComponent('%%7Bst%C3%A5le%7D%');\n//=> '%{ståle}%'\n\ndecodeUriComponent('%7B%ab%%7C%de%%7D');\n//=> '{%ab%|%de%}'\n\ndecodeUriComponent('%FE%FF');\n//=> '\\uFFFD\\uFFFD'\n\ndecodeUriComponent('%C2');\n//=> '\\uFFFD'\n\ndecodeUriComponent('%C2%B5');\n//=> 'µ'\n```\n\n\n## API\n\n### decodeUriComponent(encodedURI)\n\n#### encodedURI\n\nType: `string`\n\nAn encoded component of a Uniform Resource Identifier.\n\n\n## License\n\nMIT © [Sam Verschueren](https://github.com/SamVerschueren)\n","readmeFilename":"readme.md","homepage":"https://github.com/marmelab/decode-uri-component#readme","keywords":["decode","uri","component","decodeuricomponent","components","decoder","url"],"repository":{"url":"git+https://github.com/marmelab/decode-uri-component.git","type":"git"},"author":{"url":"github.com/SamVerschueren","name":"Sam Verschueren","email":"sam.verschueren@gmail.com"},"bugs":{"url":"https://github.com/marmelab/decode-uri-component/issues"},"license":"MIT"}