{"_id":"fast-decode-uri-component","_rev":"1927336","name":"fast-decode-uri-component","description":"Fast and safe decodeURIComponent","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"delvedor","email":""}],"time":{"modified":"2021-12-09T13:52:08.000Z","created":"2018-03-19T10:41:21.665Z","1.0.1":"2019-03-15T15:16:18.441Z","1.0.0":"2018-03-19T10:41:21.665Z"},"users":{},"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"repository":{"type":"git","url":"git+https://github.com/delvedor/fast-decode-uri-component.git"},"versions":{"1.0.1":{"name":"fast-decode-uri-component","version":"1.0.1","description":"Fast and safe decodeURIComponent","main":"index.js","scripts":{"test":"standard && tap test.js","bench":"node bench.js"},"repository":{"type":"git","url":"git+https://github.com/delvedor/fast-decode-uri-component.git"},"keywords":["decode","uri","component","fast","safe"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","bugs":{"url":"https://github.com/delvedor/fast-decode-uri-component/issues"},"homepage":"https://github.com/delvedor/fast-decode-uri-component#readme","devDependencies":{"nanobench":"^2.1.1","randomstring":"^1.1.5","standard":"^11.0.1","tap":"^11.1.2"},"gitHead":"c124e25816434dcb25813a4a7b9c3898eec76922","_id":"fast-decode-uri-component@1.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"delvedor","email":"tommydelved@gmail.com"},"dist":{"shasum":"46f8b6c22b30ff7a81357d4f59abfae938202543","size":3600,"noattachment":false,"key":"/fast-decode-uri-component/-/fast-decode-uri-component-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fast-decode-uri-component/download/fast-decode-uri-component-1.0.1.tgz"},"maintainers":[{"name":"delvedor","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fast-decode-uri-component_1.0.1_1552662978261_0.14201685172216738"},"_hasShrinkwrap":false,"publish_time":1552662978441,"_cnpm_publish_time":1552662978441},"1.0.0":{"name":"fast-decode-uri-component","version":"1.0.0","description":"Fast and safe decodeURIComponent","main":"index.js","scripts":{"test":"standard && tap test.js","bench":"node bench.js"},"repository":{"type":"git","url":"git+https://github.com/delvedor/fast-decode-uri-component.git"},"keywords":["decode","uri","component","fast","safe"],"author":{"name":"Tomas Della Vedova - @delvedor","url":"http://delved.org"},"license":"MIT","bugs":{"url":"https://github.com/delvedor/fast-decode-uri-component/issues"},"homepage":"https://github.com/delvedor/fast-decode-uri-component#readme","devDependencies":{"nanobench":"^2.1.1","randomstring":"^1.1.5","standard":"^11.0.1","tap":"^11.1.2"},"gitHead":"e5bac12352794d9b0fb894be31ef6dbf08bcd1b1","_id":"fast-decode-uri-component@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"delvedor","email":"tommydelved@gmail.com"},"dist":{"shasum":"7ce10336aa4b26286fee93d71e6785ff0f596a33","size":3588,"noattachment":false,"key":"/fast-decode-uri-component/-/fast-decode-uri-component-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fast-decode-uri-component/download/fast-decode-uri-component-1.0.0.tgz"},"maintainers":[{"name":"delvedor","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fast-decode-uri-component_1.0.0_1521456081600_0.3917510444636094"},"_hasShrinkwrap":false,"publish_time":1521456081665,"_cnpm_publish_time":1521456081665}},"readme":"# fast-decode-uri-component\n\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)  [![Build Status](https://travis-ci.org/delvedor/fast-decode-uri-component.svg?branch=master)](https://travis-ci.org/delvedor/fast-decode-uri-component)\n\nDecodes strings encoded by `encodeURI` and `encodeURIComponent`, without throwing errors on invalid escapes, instead, it returns `null`.\n\n\n## Installation\n```\nnpm install fast-decode-uri-component\n```\n\n## Usage\n```js\nconst fastDecode = require('fast-decode-uri-component')\n\nconsole.log(fastDecode('test')) // 'test'\nconsole.log(fastDecode('%25')) // '%'\nconsole.log(fastDecode('/test/hel%2Flo')) // '/test/hel/lo'\n\nconsole.log(fastDecode('/test/hel%\"Flo')) // null\nconsole.log(fastDecode('%7B%ab%7C%de%7D')) // null\nconsole.log(fastDecode('%ab')) // null\n```\n\n## Benchmarks\nYou can find the benchmark file [here](https://github.com/delvedor/fast-decode-uri-component/blob/master/bench.js).\n```\n# fast-decode-uri-component\nok ~539 ms (0 s + 539114308 ns)\n\n# decodeURIComponent\nok ~6.06 s (6 s + 62305153 ns)\n```\n\n## Acknowledgements\nThis project has been forked from [`jridgewell/safe-decode-uri-component`](https://github.com/jridgewell/safe-decode-uri-component) because I wanted to change the behaviour of the library on invalid inputs, plus change some internals.<br>\nAll the credits before the commit [`53000fe`](https://github.com/delvedor/fast-decode-uri-component/commit/53000feb8c268eec7a24620fd440fdd540be32b7) goes to the `jridgewell/safe-decode-uri-component` project [contributors](https://github.com/delvedor/fast-decode-uri-component/graphs/contributors).<br>\nSince the commit [`9673ab7`](https://github.com/delvedor/fast-decode-uri-component/commit/9673ab7820ef92081206a9f4fd158ffe9a352861) the project will be maintained by [**@delvedor**](https://github.com/delvedor).\n\n## License\n\nLicensed under [MIT](./LICENSE).\n","_attachments":{},"homepage":"https://github.com/delvedor/fast-decode-uri-component#readme","bugs":{"url":"https://github.com/delvedor/fast-decode-uri-component/issues"},"license":"MIT"}