{"_id":"decode-uri-component@0.5.1","tsd":{"compilerOptions":{"module":"node16"}},"bugs":{"url":"https://github.com/SamVerschueren/decode-uri-component/issues"},"dist":{"shasum":"7f66b25bf435df723f9af55713dcf860a1c297d2","tarball":"http://registry-npm.ywwl.com/decode-uri-component/download/decode-uri-component-0.5.1.tgz","fileCount":5,"integrity":"sha512-vWHQkXgg2cE3BB4rR0c+PYw9BCQzLoNIRMI7AunIkZst74tw/vpPp7VLoYtsR/cy1f55g3XDWUslfeCZjiZJyA==","signatures":[{"sig":"MEUCIGyQ4sZyzjmaYs1rP+IlffHxAkvtUHHVukExcSM2kQnQAiEAvvG5FP6BXK7Q502p8SxVtuEOgCvBDXLbbaUHwXmVIiQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCCS5TwmTxDVcK4ay53leSBGYF7/Yw0qEArfOIl1dWk0QIhAOtOBXj0ywLAEpx19WRAK7ITIwNDccWuoUOyC1VmliiO"}],"unpackedSize":8178,"size":3632,"noattachment":false,"key":"/decode-uri-component/-/decode-uri-component-0.5.1.tgz"},"name":"decode-uri-component","type":"module","types":"./index.d.ts","author":{"url":"github.com/SamVerschueren","name":"Sam Verschueren","email":"sam.verschueren@gmail.com"},"engines":{"node":">=14.16"},"exports":{"types":"./index.d.ts","default":"./index.js"},"gitHead":"58ed85f5adc7cfaee5e49e4d52b067f172d0bcb6","license":"MIT","scripts":{"test":"xo && nyc ava && tsd","coveralls":"nyc report --reporter=text-lcov | coveralls"},"version":"0.5.1","_npmUser":{"name":"samverschueren","email":"sam.verschueren@gmail.com"},"homepage":"https://github.com/SamVerschueren/decode-uri-component#readme","keywords":["decode","uri","component","decodeuricomponent","components","decoder","url"],"overrides":{"eslint":"8.39.0"},"repository":{"url":"git+https://github.com/SamVerschueren/decode-uri-component.git","type":"git"},"_npmVersion":"10.9.8","description":"A better decodeURIComponent","directories":{},"maintainers":[{"name":"samverschueren","email":"sam.verschueren@gmail.com"}],"sideEffects":false,"_nodeVersion":"22.22.3","_hasShrinkwrap":false,"devDependencies":{"xo":"^0.53.1","ava":"^5.1.0","nyc":"^15.1.0","tsd":"^0.25.0","coveralls":"^3.1.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/decode-uri-component_0.5.1_1792759726710_0.5383034889129017"},"readme":"# decode-uri-component\n\n![CI](https://github.com/SamVerschueren/decode-uri-component/workflows/CI/badge.svg) [![Coverage Status](https://coveralls.io/repos/SamVerschueren/decode-uri-component/badge.svg?branch=master&service=github)](https://coveralls.io/github/SamVerschueren/decode-uri-component?branch=master)\n\n> A better [decodeURIComponent](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent)\n\n\n## Why?\n\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 decode-uri-component\n```\n\n\n## Usage\n\n```js\nimport decodeUriComponent from '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\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-decode-uri-component?utm_source=npm-decode-uri-component&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","publish_time":1792759726830,"_cnpm_publish_time":1792759726830,"dist-tags":{"latest":"0.5.1"}}