{"_id":"url-parse-lax","_rev":"13-89c64c7ca5868bf3f3a2425d64e6f541","name":"url-parse-lax","dist-tags":{"latest":"6.0.0"},"versions":{"1.0.0":{"name":"url-parse-lax","version":"1.0.0","keywords":["url","uri","parse","parser","loose","lax","protocol","less","protocol-less","ip","ipv4","ipv6"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"url-parse-lax@1.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/url-parse-lax#readme","bugs":{"url":"https://github.com/sindresorhus/url-parse-lax/issues"},"dist":{"shasum":"7af8f303645e9bd79a272e7a14ac68bc0609da73","tarball":"https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz","integrity":"sha512-BVA4lR5PIviy2PMseNd2jbFQ+jwSwQGdJejf5ctd1rEXt0Ypd7yanUK9+lYechVlN5VaTJGsu2U/3MDDu6KgBA==","signatures":[{"sig":"MEQCIDCxwire5guiaITTYXHAA4mLVlRqFv/NyDA5U82Jggy1AiBh6wPiqb6t+ahMCuzlLtOlziqPnezu2sQzrnZKPP4nKA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"7af8f303645e9bd79a272e7a14ac68bc0609da73","engines":{"node":">=0.10.0"},"gitHead":"1c2c7473ee75bb84a92c8aca532a6e615e531380","scripts":{"test":"node test.js"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/url-parse-lax.git","type":"git"},"_npmVersion":"2.11.2","description":"url.parse() with support for protocol-less URLs & IPs","directories":{},"_nodeVersion":"0.12.5","dependencies":{"prepend-http":"^1.0.1"},"devDependencies":{"ava":"0.0.4"}},"2.0.0":{"name":"url-parse-lax","version":"2.0.0","keywords":["url","uri","parse","parser","loose","lax","protocol","less","protocol-less","ip","ipv4","ipv6"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"url-parse-lax@2.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/url-parse-lax#readme","bugs":{"url":"https://github.com/sindresorhus/url-parse-lax/issues"},"dist":{"shasum":"6ba5871d586035d8b49cdae7432546b7abffbb7c","tarball":"https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-2.0.0.tgz","integrity":"sha512-Pg+bA5tKMtq7OjgggbhNeyFlRtGyKJvGXHl+Wh2Ykr4njfcjzVJ9mrb8f0bnYiZ33lT8+QdGhEZEdKkDsUjn3Q==","signatures":[{"sig":"MEUCIHTbS6bofO4Y4h5VqVQbXMu4FA8i/Vs7FGFQ++fAua9hAiEAuTUYbW8CLjVtWVhFYBvvE6HglQ174SwKeVKU1LnJofk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"6ba5871d586035d8b49cdae7432546b7abffbb7c","engines":{"node":">=4"},"gitHead":"a41da52ee8d9d9ec2a409cd8fa150103e2c491d5","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/url-parse-lax.git","type":"git"},"_npmVersion":"2.15.11","description":"Lax url.parse() with support for protocol-less URLs & IPs","directories":{},"_nodeVersion":"4.8.4","dependencies":{"prepend-http":"^2.0.0"},"devDependencies":{"xo":"*","ava":"*"},"_npmOperationalInternal":{"tmp":"tmp/url-parse-lax-2.0.0.tgz_1508235702647_0.7799494287464768","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"url-parse-lax","version":"3.0.0","keywords":["url","uri","parse","parser","loose","lax","protocol","less","protocol-less","ip","ipv4","ipv6"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"url-parse-lax@3.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/url-parse-lax#readme","bugs":{"url":"https://github.com/sindresorhus/url-parse-lax/issues"},"dist":{"shasum":"16b5cafc07dbe3676c1b1999177823d6503acb0c","tarball":"https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz","integrity":"sha512-NjFKA0DidqPa5ciFcSrXnAltTtzz84ogy+NebPvfEgAck0+TNg4UJ4IN+fB7zRZfbgUf0syOo9MDxFkDSMuFaQ==","signatures":[{"sig":"MEUCIQC/Dgt8A3woE0u3EGgAme0H0NkPiICZSen8yfVsN/S+RAIgNOJIi8ofV61DqRIW4QOffvEg1IJgdbCwVSQFW1fAmVI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"_from":".","files":["index.js"],"_shasum":"16b5cafc07dbe3676c1b1999177823d6503acb0c","engines":{"node":">=4"},"gitHead":"4b0d2d310a9f39c8df88295853fe4f1a3bd13ec4","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/url-parse-lax.git","type":"git"},"_npmVersion":"2.15.11","description":"Lax url.parse() with support for protocol-less URLs & IPs","directories":{},"_nodeVersion":"4.8.4","dependencies":{"prepend-http":"^2.0.0"},"devDependencies":{"xo":"*","ava":"*"},"_npmOperationalInternal":{"tmp":"tmp/url-parse-lax-3.0.0.tgz_1509741338773_0.5627476745285094","host":"s3://npm-registry-packages"}},"4.0.0":{"name":"url-parse-lax","version":"4.0.0","keywords":["url","uri","parse","parser","loose","lax","protocol","less","protocol-less","ip","ipv4","ipv6"],"author":{"url":"sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"url-parse-lax@4.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/url-parse-lax#readme","bugs":{"url":"https://github.com/sindresorhus/url-parse-lax/issues"},"dist":{"shasum":"94f9b0dd8190e8baee1ce2049f79e5c67dc3318b","tarball":"https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-4.0.0.tgz","fileCount":4,"integrity":"sha512-CazaJJZUPr1EWmHjcntgS1F1q6YOpQROD6Z+aTb9obxgOFsRydnqYkRCh5xDJ3LhqTID46JrWaT7PsF7Oms0PA==","signatures":[{"sig":"MEQCICzdg9LtGYiTMUbRK7y6dD379T6uZ4SjY1XfVCBeQ5cEAiAf/32X2qJS8D0oL1QBZ111AVtvexZHY30Eg8T/tr5ZgQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4590,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc/+bQCRA9TVsSAnZWagAAmWQQAINgal71bdh4rKpFozVg\n7qhUzTGO+hAwrXq6gKcivjjC6Npu8E14DkeHP2YLiL77b7K1aV+7Y0BHiUWT\nxXNk1IwAwrbZK0B1XH2jrRB9iy7c6lu5gz5y0UBPWzJOBBw29XsCj5M4bMbD\nw0DfX1x3/M3v77rWfmZzJMaBAqQOe0iuBUkAtRV/MnMySuVyuaPfDnK+ZEJk\nqk/xq0J4NZmRvuQRA/Pt2+pyzFUbo1taNjf+I0c0szgQyfqh0vgkslF2ra0J\nuyMVf6CF1YR6XwT2kFRyJ8rjP4hstu8HMctFsyNi7Ni6APc8VqTVnwzdmFQt\nsx+Lganvup+F8GDwVx8SPT38HmOQwmTPiY2DyFj5FmmhH9J5vcCCPUcNpHLO\niahQZmknXoAGe97e+5+JxGf3luWqZEqPETmI9EXV9ixJa+EvHy66PWHm6Z4l\nseX5ibP0SBGZrxz96DfMr+p9zxjCX4W1uqtQGwjHrujgnhfYkI0kdlSUMPiB\nDuMQViv7IaKlA1iFZi1RiRPokAHg4Y3EQ7NOQVoyhGQrimjh+Kd40f9miPwP\nkDl6albBo0H7hnaxyCCU0On3Ff4P3ZGm3Huhx/s6f8oQ5zuB7viDpjpBXyQI\nDx/hDKfDJBWSySU+r2wQw0jUtMLHkiY4aD3EM38FBgt6FrLPCT1og8Ex01as\nKPyR\r\n=SoYy\r\n-----END PGP SIGNATURE-----\r\n"},"engines":{"node":">=8"},"gitHead":"ec2996366f094edd7d719cdb4aa0536acd2ff516","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/url-parse-lax.git","type":"git"},"_npmVersion":"6.9.0","description":"Lax url.parse() with support for protocol-less URLs & IPs","directories":{},"_nodeVersion":"8.16.0","dependencies":{"prepend-http":"^3.0.1"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.24.0","ava":"^2.1.0"},"_npmOperationalInternal":{"tmp":"tmp/url-parse-lax_4.0.0_1560274639544_0.024723955458921143","host":"s3://npm-registry-packages"}},"5.0.0":{"name":"url-parse-lax","version":"5.0.0","keywords":["url","parse","parser","loose","lax","protocol","less","protocol-less","ip","ipv4","ipv6"],"author":{"url":"https://sindresorhus.com","name":"Sindre Sorhus","email":"sindresorhus@gmail.com"},"license":"MIT","_id":"url-parse-lax@5.0.0","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"homepage":"https://github.com/sindresorhus/url-parse-lax#readme","bugs":{"url":"https://github.com/sindresorhus/url-parse-lax/issues"},"dist":{"shasum":"0e39cb7b3bfbcae2a9600b309aed8af52f2237bb","tarball":"https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-5.0.0.tgz","fileCount":4,"integrity":"sha512-nb/3+jhgBfN5r9RAGTDzHAXLjmFsAJjPfwaLeI3GOlMj0iUT8wlxNw7KEDfUpoZGdTquT3jDEBxay3fKvkKc6w==","signatures":[{"sig":"MEUCIFIDi/201HQyq5m0feonLKPsDK/kyJyRMHPzKPhnLttxAiEAgvfwxHgpDnICM2pZJ1xF0CVwGWpIaHEB7EMS/53KVO0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4524,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhEanNCRA9TVsSAnZWagAAue4P/RROCGg/rpXvbdrN9Kxu\nOqfRmbXGNBqVdjN2cpq4AKi6oUWvrnCEqup6SY9O1XQcvzkZHAOHCcv5rcWD\nspQyQat+8jsfl3atfXCcU481fCetkp/02FNVg7QhHxpBO1jUwsk7JfHiZ6sn\nr8w5hIKR4fndI3070vDQPOUZBrrVUb6n85XJ9kwJSMwZVSRYu757P5WRkyOS\nQvYUDCDGedUW0a+OAblE5QX6BWiuUtWiWfUJ+UpKkrUBvqtZdn7v3W4RomGf\ndVc0kAzO0UeGPdq4OKIMQL1T7789iRxvZH5+KBy3Ds7x2b040nMOPxR5EoPy\nlQxL1/ZedSh0dz4kJTis7RomPrhrWweFLl2IUp07Hee+JtS2DvZDmukHo+6d\nZrRtg77inkUCh2913LKx98/mZc8OJqpXz/CPNBoN4DezgVSEd0jexNZVbaKJ\njjsj5v2fp2YagiZILkQ6K67VoRbBbqe8hlfZDOiItt/upynGWHYKIjbva1XM\nLwKptZMVv+LU0yJ7T1K0h6rVYxVgmjvWJqZFSHO7sTdtMszkeo39bFtgG+1G\n3nwwNs1EUVk9l+XX4C1Kv3oTps+cPAlwdasdz0iBDOLttRPxoaLuXh+mAeS5\ns9GSnChHQ37eC8shFPWo0HCGE+kFFNV19YlDYoNnm9e1wonimE5GmVqEt+1Y\nW9nB\r\n=khnj\r\n-----END PGP SIGNATURE-----\r\n"},"type":"module","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"exports":"./index.js","funding":"https://github.com/sponsors/sindresorhus","gitHead":"babb752aeb217bfe71c828b76fa75f084bcdc921","scripts":{"test":"xo && ava"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"repository":{"url":"git+https://github.com/sindresorhus/url-parse-lax.git","type":"git"},"_npmVersion":"7.13.0","description":"Lax `url.parse()` with support for protocol-less URLs & IPs","directories":{},"_nodeVersion":"16.2.0","dependencies":{"prepend-http":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.44.0","ava":"^3.15.0"},"_npmOperationalInternal":{"tmp":"tmp/url-parse-lax_5.0.0_1628547532912_0.835044027820278","host":"s3://npm-registry-packages"}},"6.0.0":{"name":"url-parse-lax","version":"6.0.0","description":"Lax URL parsing with support for protocol-less URLs and IPs","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/url-parse-lax.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava"},"keywords":["url","parse","parser","loose","lax","protocol","less","protocol-less","ip","ipv4","ipv6"],"dependencies":{"prepend-http":"^4.0.0"},"devDependencies":{"ava":"^6.4.1","xo":"^1.2.2"},"_id":"url-parse-lax@6.0.0","gitHead":"94a1fb1fa625198b6cfe6f84637b6ba7c104a069","bugs":{"url":"https://github.com/sindresorhus/url-parse-lax/issues"},"homepage":"https://github.com/sindresorhus/url-parse-lax#readme","_nodeVersion":"22.12.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-4/hrYP8tlNQc0LH8K4dOPdGkM8DbbVGYr311d/BMq+fKp23aqJ5F4tQzUaWyaLOhtU0hgVwGVoi/XYNf35izrg==","shasum":"f1b3d17807cda9abb23189d7613ef3748a9f8155","tarball":"https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-6.0.0.tgz","fileCount":4,"unpackedSize":5241,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDgcDKx9mkRRrara5Sz8l5JV3/EUKP/3GEWqdXwMUvU3QIgJ/+jx7a+yq/ayvc7Io7QYfWIZNEWGgaXjqqaZwEUipo="}]},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/url-parse-lax_6.0.0_1757282899147_0.2669341906052667"},"_hasShrinkwrap":false}},"time":{"created":"2015-07-13T11:21:35.694Z","modified":"2025-09-07T22:08:19.580Z","1.0.0":"2015-07-13T11:21:35.694Z","2.0.0":"2017-10-17T10:21:42.728Z","3.0.0":"2017-11-03T20:35:38.836Z","4.0.0":"2019-06-11T17:37:19.769Z","5.0.0":"2021-08-09T22:18:53.089Z","6.0.0":"2025-09-07T22:08:19.358Z"},"bugs":{"url":"https://github.com/sindresorhus/url-parse-lax/issues"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","homepage":"https://github.com/sindresorhus/url-parse-lax#readme","keywords":["url","parse","parser","loose","lax","protocol","less","protocol-less","ip","ipv4","ipv6"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/url-parse-lax.git"},"description":"Lax URL parsing with support for protocol-less URLs and IPs","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"readme":"# url-parse-lax\n\n> Lax URL parsing with support for protocol-less URLs and IPs\n\n## Install\n\n```sh\nnpm install url-parse-lax\n```\n\n## Usage\n\n```js\nimport urlParseLax from 'url-parse-lax';\n\nurlParseLax('sindresorhus.com');\n/*\n{\n\tprotocol: 'https:',\n\tslashes: true,\n\tauth: null,\n\thost: 'sindresorhus.com',\n\tport: null,\n\thostname: 'sindresorhus.com',\n\thash: null,\n\tsearch: null,\n\tquery: null,\n\tpathname: '/',\n\tpath: '/',\n\thref: 'https://sindresorhus.com/',\n\tsearchParams: URLSearchParams {},\n\torigin: 'https://sindresorhus.com',\n\tusername: null,\n\tpassword: null\n}\n*/\n\nurlParseLax('[2001:db8::]:8000');\n/*\n{\n\tprotocol: 'https:',\n\tslashes: true,\n\tauth: null,\n\thost: '[2001:db8::]:8000',\n\tport: '8000',\n\thostname: '[2001:db8::]',\n\thash: null,\n\tsearch: null,\n\tquery: null,\n\tpathname: '/',\n\tpath: '/',\n\thref: 'https://[2001:db8::]:8000/',\n\tsearchParams: URLSearchParams {},\n\torigin: 'https://[2001:db8::]:8000',\n\tusername: null,\n\tpassword: null\n}\n*/\n```\n\nAnd with the built-in `url.parse()`:\n\n```js\nimport url from 'node:url';\n\nurl.parse('sindresorhus.com');\n/*\n{\n\tprotocol: null,\n\tslashes: null,\n\tauth: null,\n\thost: null,\n\tport: null,\n\thostname: null,\n\thash: null,\n\tsearch: null,\n\tquery: null,\n\tpathname: 'sindresorhus.com',\n\tpath: 'sindresorhus.com',\n\thref: 'sindresorhus.com'\n}\n*/\n\nurl.parse('[2001:db8::]:8000');\n/*\n{\n\tprotocol: null,\n\tslashes: null,\n\tauth: null,\n\thost: null,\n\tport: null,\n\thostname: null,\n\thash: null,\n\tsearch: null,\n\tquery: null,\n\tpathname: '[2001:db8::]:8000',\n\tpath: '[2001:db8::]:8000',\n\thref: '[2001:db8::]:8000'\n}\n*/\n```\n\n## API\n\n### urlParseLax(url, options?)\n\n#### url\n\nType: `string`\n\nThe URL to parse.\n\n#### options\n\nType: `object`\n\n##### https\n\nType: `boolean`\\\nDefault: `true`\n\nPrepend `https://` instead of `http://` to protocol-less URLs.\n\n## Related\n\n- [url-format-lax](https://github.com/sindresorhus/url-format-lax) - Formats a hostname and port into IPv6-compatible socket form of `hostname:port`\n","readmeFilename":"readme.md","users":{"huhgawz":true,"antixrist":true,"gavinning":true}}