{"_id":"@brillout/url-props","_rev":"2-8079155e5f746696d7c792c2872b080f","name":"@brillout/url-props","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@brillout/url-props","main":"./getUrlProps","version":"0.1.0","scripts":{"docs":"mdocs"},"dependencies":{"@brillout/reassert":"^0.1.1"},"repository":{"type":"git","url":"git+https://github.com/brillout/url-props.git"},"publishConfig":{"access":"public"},"devDependencies":{"mdocs":"^1.0.0"},"gitHead":"c487b91aa589a6d79c4a04182fa1d3c8a1619f2c","description":"<!---","bugs":{"url":"https://github.com/brillout/url-props/issues"},"homepage":"https://github.com/brillout/url-props#readme","_id":"@brillout/url-props@0.1.0","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-HPd1MbAHwTBp031NAqgy33nwkLIe0A7/1ZUabXLiAbSVCtE3VOd8v218PkDLrWie5lVGgNEClsNTB4AWbHYSag==","shasum":"bfac6c0df4521627d2cd4248f25ef3d94e9bda08","tarball":"https://registry.npmjs.org/@brillout/url-props/-/url-props-0.1.0.tgz","fileCount":5,"unpackedSize":6040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdOEsdCRA9TVsSAnZWagAA9qsQAKHi/m7tBa0cpwXWTDBx\nJILdL8gqR9aWVTg9evzDVz+OEyTuh5+oMJRUzGqfH+B3PH3uRerGfj1HMUTv\nGaTMLRGsUm9umTsodB36EzjOKryGf/lZ00fOGCtnRCVtM8PQJ05XKRHOgaTs\nBQn64AHn/NT4jdMxqWLIsLKjWmq+HEDamTCK3XIfaZx0DtDnoialkbf4aGXp\nKWmOmcQZ8nI4zM6v+818sT+gIIQjV6IrJ2DHwxDVseQtt4+PydgVJEnGPrki\nZOWAFIZM12ZR46bmoFe+l/xVA00ZrziXyiQfZet+Cel6o3QMv2gCvbXCVzVk\npT2LIVgZHKS0Cjd10pd6xo0XwDdqFxFhWmQm2sVXT/OMxHcNe/DcsO9skn/B\nDxlUwdB3NccBCa/OxKM96M9P7M6q84PCOc2XFjUXEVPxNYUDcKjEieg+XA1K\nw2kfkTojUG5NcWGf9I3xUaxrFaApYdBl3LcMGTEylG0R+8qfeLTDKqcTSjnD\nrY4qOzx6yLMMz3Pnj714i/sODzj9sZmBkhgh6mc6e69l/dit6bl6XqKKACSF\nLDSF7AuVeIdby2qQUPwacZrzyrXSMj7iS7ImoAg00b3EhToDwGxnB8ew7Yze\noztbQvHYEvZDOvBCTaeYiiSUAl170D2E+AY2L2b+mlQqwOaX5et/1VVC5Ox8\nwKxx\r\n=PWWE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCET/fi+rKS0LQZeimt98d/ff1VLCOrAiXFjxpaBal2owIhALlKdbe83c/BcVDfgct+/1sCncGtdOyaJx2wpjqf4Q9p"}]},"maintainers":[{"name":"brillout","email":"npm@brillout.com"}],"_npmUser":{"name":"brillout","email":"npm@brillout.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url-props_0.1.0_1563970333329_0.4262707898690963"},"_hasShrinkwrap":false},"0.1.1":{"name":"@brillout/url-props","main":"./getUrlProps","version":"0.1.1","scripts":{"docs":"mdocs"},"dependencies":{"@brillout/reassert":"^0.1.1"},"repository":{"type":"git","url":"git+https://github.com/brillout/url-props.git"},"publishConfig":{"access":"public"},"devDependencies":{"mdocs":"^1.0.0"},"gitHead":"8133a8a05643e42c2951182ccd09efdb57ce735e","description":"<!---","bugs":{"url":"https://github.com/brillout/url-props/issues"},"homepage":"https://github.com/brillout/url-props#readme","_id":"@brillout/url-props@0.1.1","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-/913Ac2YPTgERToR/D56tx35YRcDLUgyJBp4VHoMtjN3Kk5gDh8m4y1mEDd6i2LGWabfLjYHe5WKUBwikfSDQw==","shasum":"7196ed5d39653e03948d171ce246d1d8a4f9b052","tarball":"https://registry.npmjs.org/@brillout/url-props/-/url-props-0.1.1.tgz","fileCount":5,"unpackedSize":6935,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdOymdCRA9TVsSAnZWagAAl08P/1kZERQBXHRMJskC2Aq8\nl1pzjbu0nDO9J2gWXCBlkvCmf46Qfu16szvlKqWGGCuGSlWvFdAhzJcSerH7\nMAbCBAuG8RtV/Cxxu+NkVu9YKzRFRP1R5BpW9thUcxUvmIFC/W0dtO3g9dC5\ngZmxmyLEeMQa5hA6+Ena42WMYq8vQhEYm/HZRAlKtXWg5g3MPeU2n+II02sf\n1IqcooFmiINEgvOKtHqoGYuvKNkVunc35VNUEu3b72mXOjf+4GaJf0XBUSAl\nds3FQsjQNRUSxkpAsL2kT9YdnAYWsP5dJAJGfJX6dY65t1vczI4LxawOhgq4\nbodkkuoAuUt1oQegIM0b/C5uBUiIhVMkmD0a8Mhjni1fhTbHWZ8GPs6Rf6R1\njAeOr0xr3KOkDIXMD+HODKPnAm3+eWm7EzwTRctj1hAfxpti5WUGEujqomvq\nVyG6h1/1GZCJNL3Ec33ZmP25e8F6Sv0ejjWf31asVmh7kcrBpXhBSfKwvdVY\nS/A/FzSDYLBi9FgbuFYkRjJRoqccz8KuPreixBMU4nxzMr5zt7+NqyuVb18J\nK5WsQ22bzDvbL47oPVNgm9esp7SAVVCJeHLr8t82Yx3EGqNhuHkCqG3HH1Xb\nIvhS6WlXY8uGiLG/2ZGaXc0JxBXgX3fEnMZvdrMrQvFSEUo/FUHrj9ok+pPa\n2TDp\r\n=rmI+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF/mzNHCh9GjTMcNymPZ/IfuUUb/T1+sGGKhCMuvB6J3AiAngff1cebm79NpgOfA9BaeubZ38+IbdGqdUmXk0pFwJg=="}]},"maintainers":[{"name":"brillout","email":"npm@brillout.com"}],"_npmUser":{"name":"brillout","email":"npm@brillout.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/url-props_0.1.1_1564158363940_0.8459211871054062"},"_hasShrinkwrap":false}},"time":{"created":"2019-07-24T12:12:13.107Z","0.1.0":"2019-07-24T12:12:13.451Z","modified":"2022-04-04T20:41:36.900Z","0.1.1":"2019-07-26T16:26:04.066Z"},"maintainers":[{"name":"brillout","email":"npm@brillout.com"}],"description":"<!---","homepage":"https://github.com/brillout/url-props#readme","repository":{"type":"git","url":"git+https://github.com/brillout/url-props.git"},"bugs":{"url":"https://github.com/brillout/url-props/issues"},"readme":"<!---\n\n\n\n\n\n\n    WARNING, READ THIS.\n    This is a computed file. Do not edit.\n    Instead, edit `/readme.template.md` and run `npm run docs` (or `yarn docs`).\n\n\n\n\n\n\n\n\n\n\n\n\n    WARNING, READ THIS.\n    This is a computed file. Do not edit.\n    Instead, edit `/readme.template.md` and run `npm run docs` (or `yarn docs`).\n\n\n\n\n\n\n\n\n\n\n\n\n    WARNING, READ THIS.\n    This is a computed file. Do not edit.\n    Instead, edit `/readme.template.md` and run `npm run docs` (or `yarn docs`).\n\n\n\n\n\n\n\n\n\n\n\n\n    WARNING, READ THIS.\n    This is a computed file. Do not edit.\n    Instead, edit `/readme.template.md` and run `npm run docs` (or `yarn docs`).\n\n\n\n\n\n\n\n\n\n\n\n\n    WARNING, READ THIS.\n    This is a computed file. Do not edit.\n    Instead, edit `/readme.template.md` and run `npm run docs` (or `yarn docs`).\n\n\n\n\n\n\n-->\nFully-featured URL parsing.\n- Works in Node.js.\n- Works in the browser.\n- Parses URLs with hostname, e.g. `https://example.org/hello/there`, as well as URLs without origin, e.g. `/hello/there`.\n- Parses the query string.\n- Pretty logging when doing `console.log(parseUrl('https://example.org/hello/there'))`.\n\nRunning\n\n~~~js\n// ./example.js\n\nconst getUrlProps = require('@brillout/url-props');\n\nconsole.log(getUrlProps('http://localhost:3000/hi'));\nconsole.log(getUrlProps('hello/there?opt=1#sectionA'));\n~~~\n\nprints\n\n~~~js\n{\n  url: 'http://localhost:3000/hi',\n  href: 'http://localhost:3000/hi',\n  origin: 'http://localhost:3000',\n  protocol: 'http:',\n  hostname: 'localhost',\n  port: '3000',\n  pathname: '/hi',\n  query: {},\n  queryString: '',\n  hash: ''\n}\n{\n  url: 'hello/there?opt=1#sectionA',\n  href: null,\n  origin: null,\n  protocol: null,\n  hostname: null,\n  port: null,\n  pathname: '/hello/there',\n  query: { opt: '1' },\n  queryString: '?opt=1',\n  hash: '#sectionA'\n}\n~~~\n\n<!---\n\n\n\n\n\n\n    WARNING, READ THIS.\n    This is a computed file. Do not edit.\n    Instead, edit `/readme.template.md` and run `npm run docs` (or `yarn docs`).\n\n\n\n\n\n\n\n\n\n\n\n\n    WARNING, READ THIS.\n    This is a computed file. Do not edit.\n    Instead, edit `/readme.template.md` and run `npm run docs` (or `yarn docs`).\n\n\n\n\n\n\n\n\n\n\n\n\n    WARNING, READ THIS.\n    This is a computed file. Do not edit.\n    Instead, edit `/readme.template.md` and run `npm run docs` (or `yarn docs`).\n\n\n\n\n\n\n\n\n\n\n\n\n    WARNING, READ THIS.\n    This is a computed file. Do not edit.\n    Instead, edit `/readme.template.md` and run `npm run docs` (or `yarn docs`).\n\n\n\n\n\n\n\n\n\n\n\n\n    WARNING, READ THIS.\n    This is a computed file. Do not edit.\n    Instead, edit `/readme.template.md` and run `npm run docs` (or `yarn docs`).\n\n\n\n\n\n\n-->\n","readmeFilename":"readme.md"}