{"_id":"@polka/url","_rev":"264019","name":"@polka/url","description":"Super fast, memoized `req.url` parser","dist-tags":{"latest":"0.5.0","next":"1.0.0-next.29"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"time":{"modified":"2025-05-16T07:34:37.000Z","created":"2018-09-18T18:17:32.381Z","1.0.0-next.29":"2025-04-09T18:41:21.389Z","1.0.0-next.28":"2024-09-19T13:51:44.023Z","1.0.0-next.27":"2024-09-18T04:55:27.655Z","1.0.0-next.25":"2024-03-07T22:32:25.396Z","1.0.0-next.24":"2023-12-04T16:25:00.639Z","1.0.0-next.23":"2023-09-06T18:24:26.430Z","1.0.0-next.21":"2021-10-01T12:56:20.378Z","1.0.0-next.20":"2021-08-27T07:05:37.500Z","1.0.0-next.19":"2021-08-26T03:26:19.608Z","1.0.0-next.18":"2021-08-26T03:24:18.299Z","1.0.0-next.17":"2021-08-14T00:28:57.328Z","1.0.0-next.15":"2021-05-24T22:01:09.099Z","1.0.0-next.12":"2021-03-28T22:19:37.173Z","1.0.0-next.11":"2020-01-13T14:49:26.566Z","1.0.0-next.9":"2019-11-21T03:09:27.406Z","1.0.0-next.7":"2019-10-29T06:25:26.300Z","1.0.0-next.3":"2019-05-02T18:30:03.922Z","1.0.0-next.1":"2019-03-31T00:13:51.286Z","1.0.0-next.0":"2019-03-10T07:34:03.975Z","0.5.0":"2018-09-18T18:17:32.381Z"},"users":{},"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"repository":{"type":"git","url":"https://github.com/lukeed/polka.git"},"versions":{"1.0.0-next.29":{"version":"1.0.0-next.29","name":"@polka/url","repository":{"type":"git","url":"git+https://github.com/lukeed/polka.git"},"description":"Super fast, memoized `req.url` parser","module":"build.mjs","types":"index.d.ts","main":"build.js","license":"MIT","exports":{".":{"types":"./index.d.ts","import":"./build.mjs","require":"./build.js"},"./package.json":"./package.json"},"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"_id":"@polka/url@1.0.0-next.29","readmeFilename":"readme.md","gitHead":"02cbdb529ddca0a9f3d225e2abb2931924219cc3","bugs":{"url":"https://github.com/lukeed/polka/issues"},"homepage":"https://github.com/lukeed/polka#readme","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"shasum":"5a40109a1ab5f84d6fd8fc928b19f367cbe7e7b1","size":1980,"noattachment":false,"key":"/@polka/url/-/@polka/url-1.0.0-next.29.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-1.0.0-next.29.tgz"},"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/url_1.0.0-next.29_1744224081207_0.46164070375889277"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-09T18:41:21.389Z","publish_time":1744224081389,"_source_registry_name":"default","_cnpm_publish_time":1744224081389},"1.0.0-next.28":{"version":"1.0.0-next.28","name":"@polka/url","repository":{"type":"git","url":"git+https://github.com/lukeed/polka.git"},"description":"Super fast, memoized `req.url` parser","module":"build.mjs","types":"index.d.ts","main":"build.js","license":"MIT","exports":{".":{"types":"./index.d.ts","import":"./build.mjs","require":"./build.js"},"./package.json":"./package.json"},"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"_id":"@polka/url@1.0.0-next.28","readmeFilename":"readme.md","gitHead":"895ffb96945c4d40e62205bfc6897f5bfc76700e","bugs":{"url":"https://github.com/lukeed/polka/issues"},"homepage":"https://github.com/lukeed/polka#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"shasum":"d45e01c4a56f143ee69c54dd6b12eade9e270a73","size":1943,"noattachment":false,"key":"/@polka/url/-/@polka/url-1.0.0-next.28.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-1.0.0-next.28.tgz"},"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url_1.0.0-next.28_1726753903811_0.8324582707099009"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-19T13:51:44.023Z","publish_time":1726753904023,"_source_registry_name":"default","_cnpm_publish_time":1726753904023},"1.0.0-next.27":{"version":"1.0.0-next.27","name":"@polka/url","repository":{"type":"git","url":"git+https://github.com/lukeed/polka.git"},"description":"Super fast, memoized `req.url` parser","module":"build.mjs","types":"index.d.ts","main":"build.js","license":"MIT","exports":{".":{"types":"./index.d.ts","import":"./build.mjs","require":"./build.js"},"./package.json":"./package.json"},"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"_id":"@polka/url@1.0.0-next.27","readmeFilename":"readme.md","gitHead":"e682cf069743248f53ae26ad583735cabd2e8529","bugs":{"url":"https://github.com/lukeed/polka/issues"},"homepage":"https://github.com/lukeed/polka#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"shasum":"527e8df13dea13ab68d347d20ba9432cadb867a8","size":1943,"noattachment":false,"key":"/@polka/url/-/@polka/url-1.0.0-next.27.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-1.0.0-next.27.tgz"},"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url_1.0.0-next.27_1726635327495_0.0840538809897382"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-18T04:55:27.655Z","publish_time":1726635327655,"_source_registry_name":"default","_cnpm_publish_time":1726635327655},"1.0.0-next.25":{"version":"1.0.0-next.25","name":"@polka/url","repository":{"type":"git","url":"git+https://github.com/lukeed/polka.git"},"description":"Super fast, memoized `req.url` parser","module":"build.mjs","types":"index.d.ts","main":"build.js","license":"MIT","exports":{".":{"types":"./index.d.ts","import":"./build.mjs","require":"./build.js"},"./package.json":"./package.json"},"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"_id":"@polka/url@1.0.0-next.25","readmeFilename":"readme.md","gitHead":"eba0aaff89c8b0765dcc89b23f738399c5edff5e","bugs":{"url":"https://github.com/lukeed/polka/issues"},"homepage":"https://github.com/lukeed/polka#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"shasum":"f077fdc0b5d0078d30893396ff4827a13f99e817","size":1938,"noattachment":false,"key":"/@polka/url/-/@polka/url-1.0.0-next.25.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-1.0.0-next.25.tgz"},"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url_1.0.0-next.25_1709850745210_0.08813311437885729"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-07T22:32:25.396Z","publish_time":1709850745396,"_source_registry_name":"default","_cnpm_publish_time":1709850745396},"1.0.0-next.24":{"version":"1.0.0-next.24","name":"@polka/url","repository":{"type":"git","url":"git+https://github.com/lukeed/polka.git"},"description":"Super fast, memoized `req.url` parser","module":"build.mjs","types":"index.d.ts","main":"build.js","license":"MIT","exports":{".":{"types":"./index.d.ts","import":"./build.mjs","require":"./build.js"},"./package.json":"./package.json"},"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"_id":"@polka/url@1.0.0-next.24","readmeFilename":"readme.md","gitHead":"b7a236f2b5490b296a14f8423c1dfbc35c060ac7","bugs":{"url":"https://github.com/lukeed/polka/issues"},"homepage":"https://github.com/lukeed/polka#readme","_nodeVersion":"20.8.1","_npmVersion":"10.1.0","dist":{"shasum":"58601079e11784d20f82d0585865bb42305c4df3","size":1906,"noattachment":false,"key":"/@polka/url/-/@polka/url-1.0.0-next.24.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-1.0.0-next.24.tgz"},"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url_1.0.0-next.24_1701707100449_0.86811340470757"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-04T16:25:00.639Z","publish_time":1701707100639,"_source_registry_name":"default","_cnpm_publish_time":1701707100639},"1.0.0-next.23":{"version":"1.0.0-next.23","name":"@polka/url","repository":{"type":"git","url":"git+https://github.com/lukeed/polka.git"},"description":"Super fast, memoized `req.url` parser","module":"build.mjs","types":"index.d.ts","main":"build.js","license":"MIT","exports":{".":{"types":"./index.d.ts","import":"./build.mjs","require":"./build.js"},"./package.json":"./package.json"},"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"readmeFilename":"readme.md","gitHead":"8fb37d8e63344ce3a537025ba2fbb4245ef853b3","bugs":{"url":"https://github.com/lukeed/polka/issues"},"homepage":"https://github.com/lukeed/polka#readme","_id":"@polka/url@1.0.0-next.23","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"shasum":"498e41218ab3b6a1419c735e5c6ae2c5ed609b6c","size":1903,"noattachment":false,"key":"/@polka/url/-/@polka/url-1.0.0-next.23.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-1.0.0-next.23.tgz"},"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url_1.0.0-next.23_1694024666168_0.020192544158251113"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-06T18:24:26.430Z","publish_time":1694024666430,"_source_registry_name":"default","_cnpm_publish_time":1694024666430},"1.0.0-next.21":{"version":"1.0.0-next.21","name":"@polka/url","repository":{"type":"git","url":"git+https://github.com/lukeed/polka.git"},"description":"Super fast, memoized `req.url` parser","module":"build.mjs","types":"index.d.ts","main":"build.js","license":"MIT","exports":{".":{"import":"./build.mjs","require":"./build.js"},"./package.json":"./package.json"},"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"gitHead":"8d6e31871225f4449e645ecba13de7014f772b34","readmeFilename":"readme.md","bugs":{"url":"https://github.com/lukeed/polka/issues"},"homepage":"https://github.com/lukeed/polka#readme","_id":"@polka/url@1.0.0-next.21","_nodeVersion":"16.9.1","_npmVersion":"lerna/3.13.4/node@v16.9.1+x64 (darwin)","dist":{"shasum":"5de5a2385a35309427f6011992b544514d559aa1","size":2634,"noattachment":false,"key":"/@polka/url/-/@polka/url-1.0.0-next.21.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-1.0.0-next.21.tgz"},"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url_1.0.0-next.21_1633092980231_0.3909195411486206"},"_hasShrinkwrap":false,"publish_time":1633092980378,"_cnpm_publish_time":1633092980378},"1.0.0-next.20":{"version":"1.0.0-next.20","name":"@polka/url","repository":{"type":"git","url":"git+https://github.com/lukeed/polka.git"},"description":"Super fast, memoized `req.url` parser","module":"build.mjs","types":"index.d.ts","main":"build.js","license":"MIT","exports":{".":{"import":"./build.mjs","require":"./build.js"},"./package.json":"./package.json"},"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"gitHead":"daa2c85fac5d5ac06d7c678018cc55eed00ae95a","readmeFilename":"readme.md","bugs":{"url":"https://github.com/lukeed/polka/issues"},"homepage":"https://github.com/lukeed/polka#readme","_id":"@polka/url@1.0.0-next.20","_nodeVersion":"16.8.0","_npmVersion":"lerna/3.13.4/node@v16.8.0+x64 (darwin)","dist":{"shasum":"111b5db0f501aa89b05076fa31f0ea0e0c292cd3","size":2631,"noattachment":false,"key":"/@polka/url/-/@polka/url-1.0.0-next.20.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-1.0.0-next.20.tgz"},"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url_1.0.0-next.20_1630047937372_0.9774864116259563"},"_hasShrinkwrap":false,"publish_time":1630047937500,"_cnpm_publish_time":1630047937500},"1.0.0-next.19":{"version":"1.0.0-next.19","name":"@polka/url","repository":{"type":"git","url":"git+https://github.com/lukeed/polka.git"},"description":"Super fast, memoized `req.url` parser","module":"build.mjs","types":"index.d.ts","main":"build.js","license":"MIT","exports":{".":{"import":"./build.mjs","require":"./build.js"},"./package.json":"./package.json"},"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"gitHead":"6ac64983eeb35a67c483949e08f356e46569803c","readmeFilename":"readme.md","bugs":{"url":"https://github.com/lukeed/polka/issues"},"homepage":"https://github.com/lukeed/polka#readme","_id":"@polka/url@1.0.0-next.19","_nodeVersion":"16.6.2","_npmVersion":"lerna/3.13.4/node@v16.6.2+x64 (darwin)","dist":{"shasum":"2c94db828794aa53e7a420809dac870348819233","size":3184,"noattachment":false,"key":"/@polka/url/-/@polka/url-1.0.0-next.19.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-1.0.0-next.19.tgz"},"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url_1.0.0-next.19_1629948379460_0.9377288621108204"},"_hasShrinkwrap":false,"publish_time":1629948379608,"_cnpm_publish_time":1629948379608},"1.0.0-next.18":{"version":"1.0.0-next.18","name":"@polka/url","repository":{"type":"git","url":"git+https://github.com/lukeed/polka.git"},"description":"Super fast, memoized `req.url` parser","module":"build.mjs","types":"index.d.ts","main":"build.js","license":"MIT","exports":{".":{"import":"./build.mjs","require":"./build.js"},"./package.json":"./package.json"},"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"gitHead":"765e0b2e888f210b869e9584b31af6e876ccfdc4","readmeFilename":"readme.md","bugs":{"url":"https://github.com/lukeed/polka/issues"},"homepage":"https://github.com/lukeed/polka#readme","_id":"@polka/url@1.0.0-next.18","_nodeVersion":"16.6.2","_npmVersion":"lerna/3.13.4/node@v16.6.2+x64 (darwin)","dist":{"shasum":"c8d8db7f3d38092c90ebc5e825c2c6b0cc5b1042","size":3175,"noattachment":false,"key":"/@polka/url/-/@polka/url-1.0.0-next.18.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-1.0.0-next.18.tgz"},"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url_1.0.0-next.18_1629948258115_0.6912421050551216"},"_hasShrinkwrap":false,"publish_time":1629948258299,"_cnpm_publish_time":1629948258299},"1.0.0-next.17":{"version":"1.0.0-next.17","name":"@polka/url","repository":{"type":"git","url":"git+https://github.com/lukeed/polka.git"},"description":"Super fast, memoized `req.url` parser","module":"build.mjs","types":"index.d.ts","main":"build.js","license":"MIT","exports":{".":{"import":"./build.mjs","require":"./build.js"},"./package.json":"./package.json"},"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"gitHead":"e0a65c781b763f7421f1a64d4166b3911f4d20e9","readmeFilename":"readme.md","bugs":{"url":"https://github.com/lukeed/polka/issues"},"homepage":"https://github.com/lukeed/polka#readme","_id":"@polka/url@1.0.0-next.17","_nodeVersion":"14.15.3","_npmVersion":"lerna/3.13.4/node@v14.15.3+x64 (darwin)","dist":{"shasum":"25fdbdfd282c2f86ddf3fcefbd98be99cd2627e2","size":3189,"noattachment":false,"key":"/@polka/url/-/@polka/url-1.0.0-next.17.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-1.0.0-next.17.tgz"},"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url_1.0.0-next.17_1628900937212_0.3294904345756555"},"_hasShrinkwrap":false,"publish_time":1628900937328,"_cnpm_publish_time":1628900937328},"1.0.0-next.15":{"version":"1.0.0-next.15","name":"@polka/url","repository":{"type":"git","url":"git+https://github.com/lukeed/polka.git"},"description":"Super fast, memoized `req.url` parser","module":"build.mjs","types":"index.d.ts","main":"build.js","license":"MIT","exports":{".":{"import":"./build.mjs","require":"./build.js"},"./package.json":"./package.json"},"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"gitHead":"e0e131dd28b03e26652a96b9a1428c017209e187","readmeFilename":"readme.md","bugs":{"url":"https://github.com/lukeed/polka/issues"},"homepage":"https://github.com/lukeed/polka#readme","_id":"@polka/url@1.0.0-next.15","_nodeVersion":"14.15.3","_npmVersion":"lerna/3.13.4/node@v14.15.3+x64 (darwin)","dist":{"shasum":"6a9d143f7f4f49db2d782f9e1c8839a29b43ae23","size":3162,"noattachment":false,"key":"/@polka/url/-/@polka/url-1.0.0-next.15.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-1.0.0-next.15.tgz"},"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url_1.0.0-next.15_1621893668932_0.40685878213468585"},"_hasShrinkwrap":false,"publish_time":1621893669099,"_cnpm_publish_time":1621893669099},"1.0.0-next.12":{"version":"1.0.0-next.12","name":"@polka/url","repository":{"type":"git","url":"git+https://github.com/lukeed/polka.git"},"description":"Super fast, memoized `req.url` parser","module":"build.mjs","types":"index.d.ts","main":"build.js","license":"MIT","author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"gitHead":"dc4a3c4b677dda9d38386299e83e84a3220e49c9","readmeFilename":"readme.md","bugs":{"url":"https://github.com/lukeed/polka/issues"},"homepage":"https://github.com/lukeed/polka#readme","_id":"@polka/url@1.0.0-next.12","_nodeVersion":"14.15.3","_npmVersion":"lerna/3.13.4/node@v14.15.3+x64 (darwin)","dist":{"shasum":"431ec342a7195622f86688bbda82e3166ce8cb28","size":3172,"noattachment":false,"key":"/@polka/url/-/@polka/url-1.0.0-next.12.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-1.0.0-next.12.tgz"},"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url_1.0.0-next.12_1616969976995_0.6621106504371705"},"_hasShrinkwrap":false,"publish_time":1616969977173,"_cnpm_publish_time":1616969977173},"1.0.0-next.11":{"version":"1.0.0-next.11","name":"@polka/url","repository":{"type":"git","url":"git+https://github.com/lukeed/polka.git"},"description":"Super fast, memoized `req.url` parser","module":"build.mjs","main":"build.js","license":"MIT","author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"gitHead":"4edc74c28fde992eb10e23a6f6f4fd6040ccb34a","readmeFilename":"readme.md","bugs":{"url":"https://github.com/lukeed/polka/issues"},"homepage":"https://github.com/lukeed/polka#readme","_id":"@polka/url@1.0.0-next.11","_nodeVersion":"10.13.0","_npmVersion":"lerna/3.13.4/node@v10.13.0+x64 (darwin)","dist":{"shasum":"aeb16f50649a91af79dbe36574b66d0f9e4d9f71","size":3014,"noattachment":false,"key":"/@polka/url/-/@polka/url-1.0.0-next.11.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-1.0.0-next.11.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url_1.0.0-next.11_1578926966458_0.631422984402525"},"_hasShrinkwrap":false,"publish_time":1578926966566,"_cnpm_publish_time":1578926966566},"1.0.0-next.9":{"version":"1.0.0-next.9","name":"@polka/url","repository":{"type":"git","url":"git+https://github.com/lukeed/polka.git"},"description":"Super fast, memoized `req.url` parser","module":"build.mjs","main":"build.js","license":"MIT","author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"gitHead":"5c8f314e57c1edb3132f2556ce13fb6c2b4e839b","readmeFilename":"readme.md","bugs":{"url":"https://github.com/lukeed/polka/issues"},"homepage":"https://github.com/lukeed/polka#readme","_id":"@polka/url@1.0.0-next.9","_nodeVersion":"10.13.0","_npmVersion":"lerna/3.13.4/node@v10.13.0+x64 (darwin)","dist":{"shasum":"9abddbf31c15548f9615a3275f66ac5c100f296d","size":2981,"noattachment":false,"key":"/@polka/url/-/@polka/url-1.0.0-next.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-1.0.0-next.9.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url_1.0.0-next.9_1574305767226_0.5120056792889136"},"_hasShrinkwrap":false,"publish_time":1574305767406,"_cnpm_publish_time":1574305767406},"1.0.0-next.7":{"version":"1.0.0-next.7","name":"@polka/url","repository":{"type":"git","url":"git+https://github.com/lukeed/polka.git"},"description":"Super fast, memoized `req.url` parser","module":"build.mjs","main":"build.js","license":"MIT","author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"gitHead":"60d0e15ad0fa36b0331fc5e4707dd409982f9824","readmeFilename":"readme.md","bugs":{"url":"https://github.com/lukeed/polka/issues"},"homepage":"https://github.com/lukeed/polka#readme","_id":"@polka/url@1.0.0-next.7","_nodeVersion":"12.13.0","_npmVersion":"lerna/3.13.4/node@v12.13.0+x64 (darwin)","dist":{"shasum":"e0f307ab768b799aa8668343ce0df6601f29b9b1","size":2942,"noattachment":false,"key":"/@polka/url/-/@polka/url-1.0.0-next.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-1.0.0-next.7.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url_1.0.0-next.7_1572330326201_0.6811849546971962"},"_hasShrinkwrap":false,"publish_time":1572330326300,"_cnpm_publish_time":1572330326300},"1.0.0-next.3":{"version":"1.0.0-next.3","name":"@polka/url","repository":{"type":"git","url":"git+https://github.com/lukeed/polka.git"},"description":"Super fast, memoized `req.url` parser","module":"index.mjs","main":"index.js","license":"MIT","author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"gitHead":"602086f1f4f1a6103e0589b04b69f8b4d934f0fc","readmeFilename":"readme.md","bugs":{"url":"https://github.com/lukeed/polka/issues"},"homepage":"https://github.com/lukeed/polka#readme","_id":"@polka/url@1.0.0-next.3","_nodeVersion":"10.13.0","_npmVersion":"lerna/3.13.4/node@v10.13.0+x64 (darwin)","dist":{"shasum":"7a56e747ec94622e8513b406c53cc1729799de09","size":2944,"noattachment":false,"key":"/@polka/url/-/@polka/url-1.0.0-next.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-1.0.0-next.3.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url_1.0.0-next.3_1556821803783_0.8318355489629763"},"_hasShrinkwrap":false,"publish_time":1556821803922,"_cnpm_publish_time":1556821803922},"1.0.0-next.1":{"version":"1.0.0-next.1","name":"@polka/url","repository":{"type":"git","url":"git+https://github.com/lukeed/polka.git"},"description":"Super fast, memoized `req.url` parser","license":"MIT","author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"gitHead":"8d32406bd3fa924b648df3e67ed32da502293904","readmeFilename":"readme.md","bugs":{"url":"https://github.com/lukeed/polka/issues"},"homepage":"https://github.com/lukeed/polka#readme","_id":"@polka/url@1.0.0-next.1","_nodeVersion":"10.13.0","_npmVersion":"lerna/3.13.1/node@v10.13.0+x64 (darwin)","dist":{"shasum":"e121c79b30b0873e4701390d3274245f81cfae77","size":2884,"noattachment":false,"key":"/@polka/url/-/@polka/url-1.0.0-next.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-1.0.0-next.1.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url_1.0.0-next.1_1553991231126_0.22464591474926654"},"_hasShrinkwrap":false,"publish_time":1553991231286,"_cnpm_publish_time":1553991231286},"1.0.0-next.0":{"version":"1.0.0-next.0","name":"@polka/url","repository":{"type":"git","url":"git+https://github.com/lukeed/polka.git"},"description":"Super fast, memoized `req.url` parser","license":"MIT","author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"gitHead":"3598f0c5a1b343b6a37f661084c1643e832ff701","readmeFilename":"readme.md","bugs":{"url":"https://github.com/lukeed/polka/issues"},"homepage":"https://github.com/lukeed/polka#readme","_id":"@polka/url@1.0.0-next.0","_nodeVersion":"10.13.0","_npmVersion":"lerna/3.13.1/node@v10.13.0+x64 (darwin)","dist":{"shasum":"818f693dd4ee2a742ff43dc789eccbcb6ba6efba","size":2561,"noattachment":false,"key":"/@polka/url/-/@polka/url-1.0.0-next.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-1.0.0-next.0.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url_1.0.0-next.0_1552203243849_0.9972463325570979"},"_hasShrinkwrap":false,"publish_time":1552203243975,"_cnpm_publish_time":1552203243975},"0.5.0":{"name":"@polka/url","version":"0.5.0","description":"Super fast, memoized `req.url` parser","repository":{"type":"git","url":"https://github.com/lukeed/polka.git"},"license":"MIT","author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"publishConfig":{"access":"public"},"_id":"@polka/url@0.5.0","dist":{"shasum":"b21510597fd601e5d7c95008b76bf0d254ebfd31","size":1822,"noattachment":false,"key":"/@polka/url/-/@polka/url-0.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@polka/url/download/@polka/url-0.5.0.tgz"},"maintainers":[{"name":"lukeed","email":"luke@lukeed.com"}],"_npmUser":{"name":"lukeed","email":"luke@lukeed.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url_0.5.0_1537294652191_0.5543897641900482"},"_hasShrinkwrap":false,"publish_time":1537294652381,"_cnpm_publish_time":1537294652381}},"readme":"# @polka/url [![npm](https://badgen.now.sh/npm/v/@polka/url)](https://npmjs.org/package/@polka/url)\n\n> Super fast, memoized `req.url` parser; _not_ limited to [Polka][polka]!\n\nParses the `url` from a [`IncomingMessage`](https://nodejs.org/api/http.html#http_class_http_incomingmessage) request. The returned object will always only contain the following keys: `search`, `query`, `pathname`, `path`, `href`, and `_raw`.\n\n> **Note:** This library does not process `protocol`, `hostname`, `port`, etc.<br>This is because the incoming `req.url` value only begins with the path information.\n\nParsed requests will be mutated with a `_parsedUrl` key, containing the returned output. This is used for future memoization, so as to avoid parsing the same `url` value multiple times.\n\n## Install\n\n```\n$ npm install --save @polka/url\n```\n\n## Usage\n\n```js\nconst parse = require('@polka/url');\n\nlet req = { url: '/foo/bar?fizz=buzz' };\nlet foo = parse(req);\n//=> { search: '?fizz=buzz',\n//=>   query: 'fizz=buzz',\n//=>   pathname: '/foo/bar',\n//=>   path: '/foo/bar?fizz=buzz',\n//=>   href: '/foo/bar?fizz=buzz',\n//=>   _raw: '/foo/bar?fizz=buzz' }\n\n// Attaches result for future memoization\nassert.deepEqual(foo, req._parsedUrl); //=> true\n```\n\n## API\n\n### url(req)\nReturns: `Object` or `undefined`\n\n> **Important:** The `req` must have a `url` key, otherwise `undefined` will be returned.<br>If no input is provided at all, a `TypeError` will be thrown.\n\n#### req\nType: `IncomingMessage` or `Object`\n\nThe incoming HTTP request (`req`) or a plain `Object` with a `url` key.\n\n> **Note:** In Node.js servers, the [`req.url`](https://nodejs.org/api/http.html#http_message_url) begins with a pathname & does not include a `hash`.\n\n\n## Benchmarks\n\n> Running the `parseurl` benchmark suite on Node 10.9.0\n\n```\nParsing: \"/foo/bar?user=tj&pet=fluffy\"\n  nativeurl  x  3,496,593 ops/sec ±0.78% (194 runs sampled)\n  parseurl   x  5,702,515 ops/sec ±0.59% (194 runs sampled)\n  @polka/url x 11,510,281 ops/sec ±1.93% (192 runs sampled)\n\nREPEAT: \"/foo/bar?user=tj&pet=fluffy\"\n  nativeurl  x  3,344,884 ops/sec ±0.13% (191 runs sampled)\n  parseurl   x 20,386,848 ops/sec ±0.22% (192 runs sampled)\n  @polka/url x 21,088,923 ops/sec ±0.58% (191 runs sampled)\n\nParsing: \"/foo/bar\"\n  nativeurl  x  9,808,119 ops/sec ±0.51% (190 runs sampled)\n  parseurl   x 26,186,627 ops/sec ±0.16% (195 runs sampled)\n  @polka/url x 43,946,765 ops/sec ±0.55% (194 runs sampled)\n\nParsing: \"/\"\n  nativeurl  x 15,698,746 ops/sec ±0.79% (192 runs sampled)\n  parseurl   x 36,861,339 ops/sec ±0.19% (195 runs sampled)\n  @polka/url x 48,295,119 ops/sec ±0.51% (194 runs sampled)\n```\n\n\n## Support\n\nAny issues or questions can be sent to the [Polka][polka] repository.<br>However, please specify that your inquiry is about `@polka/url` specifically.\n\n\n## License\n\nMIT © [Luke Edwards](https://lukeed.com)\n\n[polka]: https://github.com/lukeed/polka\n","_attachments":{},"license":"MIT"}