{"_id":"@burmajs/url-parser","_rev":"4-3241c35a04c5c8087487a7af0342ef39","name":"@burmajs/url-parser","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.0":{"name":"@burmajs/url-parser","version":"1.0.0","author":"","license":"Apache-2.0","_id":"@burmajs/url-parser@1.0.0","maintainers":[{"name":"phothin","email":"phothinmg@gmail.com"}],"homepage":"https://github.com/burmajs/url-parser#readme","bugs":{"url":"https://github.com/burmajs/url-parser/issues"},"dist":{"shasum":"572545d9ba034f270f1475b01780597aec115979","tarball":"https://registry.npmjs.org/@burmajs/url-parser/-/url-parser-1.0.0.tgz","fileCount":6,"integrity":"sha512-BDzHxoHXC7Bx/3hyFzYyL7G+BBDvWQvAZP/npiRGPa/uxGElUG1KCrU6YqDXxRQBernluG+j8CmT4Qe3PYi9uQ==","signatures":[{"sig":"MEQCICpJZEpEk+s2Gl2+sBIz+gwAgFZs2Bto33g66vra2H/eAiB4+FS3GwXthz/+og+jZVhiQAGrhVqIFQd4q7zv6xD4hQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14136},"types":"./index.d.ts","exports":{"types":"./index.d.ts","import":"./index.mjs","require":"./index.js"},"gitHead":"230969e3b4ee36a0c28182d2559d35e42d9c4d71","_npmUser":{"name":"phothin","email":"phothinmg@gmail.com"},"repository":{"url":"git+https://github.com/burmajs/url-parser.git","type":"git"},"_npmVersion":"10.9.0","description":"Parse req.url of http.IncomingMessage","directories":{},"_nodeVersion":"22.3.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/node":"^22.7.7"},"_npmOperationalInternal":{"tmp":"tmp/url-parser_1.0.0_1729359253063_0.34073216049920907","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@burmajs/url-parser","version":"1.0.1","author":"","license":"Apache-2.0","_id":"@burmajs/url-parser@1.0.1","maintainers":[{"name":"phothin","email":"phothinmg@gmail.com"}],"homepage":"https://github.com/burmajs/url-parser#readme","bugs":{"url":"https://github.com/burmajs/url-parser/issues"},"dist":{"shasum":"5c7d298ef9d2142c50fe3019ac277ee2ea626c14","tarball":"https://registry.npmjs.org/@burmajs/url-parser/-/url-parser-1.0.1.tgz","fileCount":6,"integrity":"sha512-1NYsET9olrdCdKBrkEJwpAyk7BtBZbux/R6c6uCSTEAg07eWs9SVvVKDBqdI8wmpPoRE5LsaW8NIZZ+Qa3yTww==","signatures":[{"sig":"MEQCID89ZbC0i6i+MNmBRfdUXy18SyNI5wUVf/Pj3ctkinbMAiAlUN46PnhIfdbgs14hIyrAkXdbXuIMZcHDPJhPvXa7gA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14204},"type":"module","types":"./index.d.ts","exports":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"},"gitHead":"3f9bafe867250139f9774979278d993d1f09b74b","_npmUser":{"name":"phothin","email":"phothinmg@gmail.com"},"repository":{"url":"git+https://github.com/burmajs/url-parser.git","type":"git"},"_npmVersion":"10.9.0","description":"Parse req.url of http.IncomingMessage","directories":{},"_nodeVersion":"22.3.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/node":"^22.7.7"},"_npmOperationalInternal":{"tmp":"tmp/url-parser_1.0.1_1729359898274_0.14947385722256","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@burmajs/url-parser","version":"1.0.2","author":"","license":"Apache-2.0","_id":"@burmajs/url-parser@1.0.2","maintainers":[{"name":"phothin","email":"phothinmg@gmail.com"}],"homepage":"https://github.com/burmajs/url-parser#readme","bugs":{"url":"https://github.com/burmajs/url-parser/issues"},"dist":{"shasum":"c53a52b4818bd8f1d6c9bdc928cc75094e48efb7","tarball":"https://registry.npmjs.org/@burmajs/url-parser/-/url-parser-1.0.2.tgz","fileCount":6,"integrity":"sha512-juEQEijBf8Woc4zQCL2hksZnymKv0fG8Wdb03Y9jHhoWNvWJ8KrxspKVfWIo+7XCYDMRABQZLVGX2X2dB4/Sog==","signatures":[{"sig":"MEUCIQD6dHBbGjCHE9wb7/CJkWPvXpDBRSAsUU6TJDmzqtQ+jQIgTs5krt0Us83tuM/t6Aq05hwHkyY1XzF6k180pDTXxAM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15768},"type":"module","types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","import":"./index.js","require":"./index.cjs"},"./package.json":"./package.json"},"gitHead":"30b8acecb758249632089d7630b43fdcad66792c","_npmUser":{"name":"phothin","email":"phothinmg@gmail.com"},"repository":{"url":"git+https://github.com/burmajs/url-parser.git","type":"git"},"_npmVersion":"10.9.0","description":"Parse req.url of http.IncomingMessage","directories":{},"_nodeVersion":"22.3.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/node":"^22.7.7"},"_npmOperationalInternal":{"tmp":"tmp/url-parser_1.0.2_1729361783430_0.3581677816427702","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@burmajs/url-parser","version":"1.0.3","author":"","license":"Apache-2.0","_id":"@burmajs/url-parser@1.0.3","maintainers":[{"name":"phothin","email":"phothinmg@gmail.com"}],"homepage":"https://github.com/burmajs/url-parser#readme","bugs":{"url":"https://github.com/burmajs/url-parser/issues"},"dist":{"shasum":"21979576c4043359dc3b763cc201dcca17b0c4e8","tarball":"https://registry.npmjs.org/@burmajs/url-parser/-/url-parser-1.0.3.tgz","fileCount":7,"integrity":"sha512-i9FFGUw7kTEOEbsP0rKSO5wbNvfxjht3u0750RM1TJBmDaHypdy7nh9IJFnEUnYcU5w0IvZePrNrSZQTV6ngKA==","signatures":[{"sig":"MEUCIQD1yMkTYJbN0TJMAoKkVmBrKqHWCoDoFas7DetDbK7vUAIgbCkOQ3XpOvp7Q0bS3PWJc8vT3KzXpogUMeQvYEY71LA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15550},"type":"module","types":"./index.d.ts","exports":{".":{"types":"./index.d.cts","import":"./index.mjs","require":"./index.cjs"},"./package.json":"./package.json"},"gitHead":"bc9195ba9476d272b4d860833c86b7ba9bb93dfc","_npmUser":{"name":"phothin","email":"phothinmg@gmail.com"},"repository":{"url":"git+https://github.com/burmajs/url-parser.git","type":"git"},"_npmVersion":"10.9.0","description":"Parse req.url of http.IncomingMessage","directories":{},"_nodeVersion":"22.3.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.6.3","@types/node":"^22.7.7"},"_npmOperationalInternal":{"tmp":"tmp/url-parser_1.0.3_1730664043034_0.8241949798793387","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@burmajs/url-parser","version":"1.0.4","type":"module","exports":{".":{"import":{"types":"./index.d.ts","default":"./index.js"},"require":{"types":"./index.d.cts","default":"./index.cjs"}}},"author":{"name":"Burmajs"},"license":"Apache-2.0","description":"Parse req.url of http.IncomingMessage","devDependencies":{"@types/node":"^22.7.7","typescript":"^5.6.3"},"repository":{"type":"git","url":"git+https://github.com/burmajs/url-parser.git"},"_id":"@burmajs/url-parser@1.0.4","gitHead":"b557db2dd8a0b087116a47804f1d0bf00e0781ed","types":"./index.d.ts","bugs":{"url":"https://github.com/burmajs/url-parser/issues"},"homepage":"https://github.com/burmajs/url-parser#readme","_nodeVersion":"22.3.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-6Wyba8u47+bupxpsJnnvEbF4XfJRN69CaMmfIpEvDmKG8RROUOCw6oO6ad8FqpA2NMwpt8Wa3JQHlisElon+ig==","shasum":"28a68effdd731ceb59b774b902bd46c6bc3a9912","tarball":"https://registry.npmjs.org/@burmajs/url-parser/-/url-parser-1.0.4.tgz","fileCount":7,"unpackedSize":15566,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGVAgsz5+ZzAU0u49JDho2D5m6OBzt5W5ZeLvqmD4VrBAiEArTHnsLI4TSMH/hYNS+kDf+0v87YP30TShwJzhxIO/e8="}]},"_npmUser":{"name":"phothin","email":"phothinmg@gmail.com"},"directories":{},"maintainers":[{"name":"phothin","email":"phothinmg@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url-parser_1.0.4_1730665229904_0.7140168241764075"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-19T17:34:12.962Z","modified":"2024-11-03T20:20:30.264Z","1.0.0":"2024-10-19T17:34:13.312Z","1.0.1":"2024-10-19T17:44:58.491Z","1.0.2":"2024-10-19T18:16:23.615Z","1.0.3":"2024-11-03T20:00:43.225Z","1.0.4":"2024-11-03T20:20:30.094Z"},"bugs":{"url":"https://github.com/burmajs/url-parser/issues"},"license":"Apache-2.0","homepage":"https://github.com/burmajs/url-parser#readme","repository":{"type":"git","url":"git+https://github.com/burmajs/url-parser.git"},"description":"Parse req.url of http.IncomingMessage","maintainers":[{"name":"phothin","email":"phothinmg@gmail.com"}],"readme":"## Parse req.url of http.IncomingMessage\n\n### Install\n\n```bash\nnpm i @burmajs/url-parser\n```\n\n```bash\npnpm i @burmajs/url-parser\n```\n\n### Example\n\n#### ESM\n\n```ts\nimport http from \"node:http\";\nimport urlParser from \"@burmajs/url-parser\";\n\nhttp\n  .createServer(function (req, res) {\n    const parseedUrl = urlParser(req);\n    if (req.url === \"/foo/bar?user=foo&pass=bar\") {\n      res.writeHead(200, { \"Content-Type\": \"application/json\" });\n      res.end(\n        JSON.stringify({\n          parseedUrl,\n        })\n      );\n    }\n  })\n  .listen(3000);\n\n/*\n {\n  \"parseedUrl\": {\n    \"pathname\": \"/foo/bar\",\n    \"query\": {\n      \"user\": \"foo\",\n      \"pass\": \"bar\"\n    },\n    \"rawUrl\": \"/foo/bar?user=foo&pass=bar\",\n    \"search\": \"user=foo&pass=bar\"\n  }\n}\n*/\n```\n\n#### Common Js\n\n```js\nconst http = require(\"node:http\");\nconst urlParser = require(\"@burmajs/url-parser\");\n\nhttp\n  .createServer(function (req, res) {\n    const parseedUrl = urlParser(req);\n    if (req.url === \"/foo/bar?user=foo&pass=bar\") {\n      res.writeHead(200, { \"Content-Type\": \"application/json\" });\n      res.end(\n        JSON.stringify({\n          parseedUrl,\n        })\n      );\n    }\n  })\n  .listen(3000);\n\n/*\n  {\n  \"parseedUrl\": {\n    \"pathname\": \"/foo/bar\",\n    \"query\": {\n      \"user\": \"foo\",\n      \"pass\": \"bar\"\n    },\n    \"rawUrl\": \"/foo/bar?user=foo&pass=bar\",\n    \"search\": \"user=foo&pass=bar\"\n  }\n}\n*/\n```\n","readmeFilename":"README.md","author":{"name":"Burmajs"}}