| 1 |
{ |
| 2 |
"_id": "url-parse-lax", |
| 3 |
"_rev": "7-6f96ff4fc9d4782adfb818b71453f933", |
| 4 |
"name": "url-parse-lax", |
| 5 |
"description": "Lax url.parse() with support for protocol-less URLs & IPs", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "4.0.0" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"1.0.0": { |
| 11 |
"name": "url-parse-lax", |
| 12 |
"version": "1.0.0", |
| 13 |
"description": "url.parse() with support for protocol-less URLs & IPs", |
| 14 |
"license": "MIT", |
| 15 |
"repository": { |
| 16 |
"type": "git", |
| 17 |
"url": "git+https://github.com/sindresorhus/url-parse-lax.git" |
| 18 |
}, |
| 19 |
"author": { |
| 20 |
"name": "Sindre Sorhus", |
| 21 |
"email": "[email protected]", |
| 22 |
"url": "sindresorhus.com" |
| 23 |
}, |
| 24 |
"engines": { |
| 25 |
"node": ">=0.10.0" |
| 26 |
}, |
| 27 |
"scripts": { |
| 28 |
"test": "node test.js" |
| 29 |
}, |
| 30 |
"files": [ |
| 31 |
"index.js" |
| 32 |
], |
| 33 |
"keywords": [ |
| 34 |
"url", |
| 35 |
"uri", |
| 36 |
"parse", |
| 37 |
"parser", |
| 38 |
"loose", |
| 39 |
"lax", |
| 40 |
"protocol", |
| 41 |
"less", |
| 42 |
"protocol-less", |
| 43 |
"ip", |
| 44 |
"ipv4", |
| 45 |
"ipv6" |
| 46 |
], |
| 47 |
"dependencies": { |
| 48 |
"prepend-http": "^1.0.1" |
| 49 |
}, |
| 50 |
"devDependencies": { |
| 51 |
"ava": "0.0.4" |
| 52 |
}, |
| 53 |
"gitHead": "1c2c7473ee75bb84a92c8aca532a6e615e531380", |
| 54 |
"bugs": { |
| 55 |
"url": "https://github.com/sindresorhus/url-parse-lax/issues" |
| 56 |
}, |
| 57 |
"homepage": "https://github.com/sindresorhus/url-parse-lax#readme", |
| 58 |
"_id": "[email protected]", |
| 59 |
"_shasum": "7af8f303645e9bd79a272e7a14ac68bc0609da73", |
| 60 |
"_from": ".", |
| 61 |
"_npmVersion": "2.11.2", |
| 62 |
"_nodeVersion": "0.12.5", |
| 63 |
"_npmUser": { |
| 64 |
"name": "sindresorhus", |
| 65 |
"email": "[email protected]" |
| 66 |
}, |
| 67 |
"dist": { |
| 68 |
"shasum": "7af8f303645e9bd79a272e7a14ac68bc0609da73", |
| 69 |
"tarball": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz" |
| 70 |
}, |
| 71 |
"maintainers": [ |
| 72 |
{ |
| 73 |
"name": "sindresorhus", |
| 74 |
"email": "[email protected]" |
| 75 |
} |
| 76 |
], |
| 77 |
"directories": {} |
| 78 |
}, |
| 79 |
"2.0.0": { |
| 80 |
"name": "url-parse-lax", |
| 81 |
"version": "2.0.0", |
| 82 |
"description": "Lax url.parse() with support for protocol-less URLs & IPs", |
| 83 |
"license": "MIT", |
| 84 |
"repository": { |
| 85 |
"type": "git", |
| 86 |
"url": "git+https://github.com/sindresorhus/url-parse-lax.git" |
| 87 |
}, |
| 88 |
"author": { |
| 89 |
"name": "Sindre Sorhus", |
| 90 |
"email": "[email protected]", |
| 91 |
"url": "sindresorhus.com" |
| 92 |
}, |
| 93 |
"engines": { |
| 94 |
"node": ">=4" |
| 95 |
}, |
| 96 |
"scripts": { |
| 97 |
"test": "xo && ava" |
| 98 |
}, |
| 99 |
"files": [ |
| 100 |
"index.js" |
| 101 |
], |
| 102 |
"keywords": [ |
| 103 |
"url", |
| 104 |
"uri", |
| 105 |
"parse", |
| 106 |
"parser", |
| 107 |
"loose", |
| 108 |
"lax", |
| 109 |
"protocol", |
| 110 |
"less", |
| 111 |
"protocol-less", |
| 112 |
"ip", |
| 113 |
"ipv4", |
| 114 |
"ipv6" |
| 115 |
], |
| 116 |
"dependencies": { |
| 117 |
"prepend-http": "^2.0.0" |
| 118 |
}, |
| 119 |
"devDependencies": { |
| 120 |
"ava": "*", |
| 121 |
"xo": "*" |
| 122 |
}, |
| 123 |
"gitHead": "a41da52ee8d9d9ec2a409cd8fa150103e2c491d5", |
| 124 |
"bugs": { |
| 125 |
"url": "https://github.com/sindresorhus/url-parse-lax/issues" |
| 126 |
}, |
| 127 |
"homepage": "https://github.com/sindresorhus/url-parse-lax#readme", |
| 128 |
"_id": "[email protected]", |
| 129 |
"_shasum": "6ba5871d586035d8b49cdae7432546b7abffbb7c", |
| 130 |
"_from": ".", |
| 131 |
"_npmVersion": "2.15.11", |
| 132 |
"_nodeVersion": "4.8.4", |
| 133 |
"_npmUser": { |
| 134 |
"name": "sindresorhus", |
| 135 |
"email": "[email protected]" |
| 136 |
}, |
| 137 |
"dist": { |
| 138 |
"shasum": "6ba5871d586035d8b49cdae7432546b7abffbb7c", |
| 139 |
"tarball": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-2.0.0.tgz" |
| 140 |
}, |
| 141 |
"maintainers": [ |
| 142 |
{ |
| 143 |
"name": "sindresorhus", |
| 144 |
"email": "[email protected]" |
| 145 |
} |
| 146 |
], |
| 147 |
"_npmOperationalInternal": { |
| 148 |
"host": "s3://npm-registry-packages", |
| 149 |
"tmp": "tmp/url-parse-lax-2.0.0.tgz_1508235702647_0.7799494287464768" |
| 150 |
}, |
| 151 |
"directories": {} |
| 152 |
}, |
| 153 |
"3.0.0": { |
| 154 |
"name": "url-parse-lax", |
| 155 |
"version": "3.0.0", |
| 156 |
"description": "Lax url.parse() with support for protocol-less URLs & IPs", |
| 157 |
"license": "MIT", |
| 158 |
"repository": { |
| 159 |
"type": "git", |
| 160 |
"url": "git+https://github.com/sindresorhus/url-parse-lax.git" |
| 161 |
}, |
| 162 |
"author": { |
| 163 |
"name": "Sindre Sorhus", |
| 164 |
"email": "[email protected]", |
| 165 |
"url": "sindresorhus.com" |
| 166 |
}, |
| 167 |
"engines": { |
| 168 |
"node": ">=4" |
| 169 |
}, |
| 170 |
"scripts": { |
| 171 |
"test": "xo && ava" |
| 172 |
}, |
| 173 |
"files": [ |
| 174 |
"index.js" |
| 175 |
], |
| 176 |
"keywords": [ |
| 177 |
"url", |
| 178 |
"uri", |
| 179 |
"parse", |
| 180 |
"parser", |
| 181 |
"loose", |
| 182 |
"lax", |
| 183 |
"protocol", |
| 184 |
"less", |
| 185 |
"protocol-less", |
| 186 |
"ip", |
| 187 |
"ipv4", |
| 188 |
"ipv6" |
| 189 |
], |
| 190 |
"dependencies": { |
| 191 |
"prepend-http": "^2.0.0" |
| 192 |
}, |
| 193 |
"devDependencies": { |
| 194 |
"ava": "*", |
| 195 |
"xo": "*" |
| 196 |
}, |
| 197 |
"gitHead": "4b0d2d310a9f39c8df88295853fe4f1a3bd13ec4", |
| 198 |
"bugs": { |
| 199 |
"url": "https://github.com/sindresorhus/url-parse-lax/issues" |
| 200 |
}, |
| 201 |
"homepage": "https://github.com/sindresorhus/url-parse-lax#readme", |
| 202 |
"_id": "[email protected]", |
| 203 |
"_shasum": "16b5cafc07dbe3676c1b1999177823d6503acb0c", |
| 204 |
"_from": ".", |
| 205 |
"_npmVersion": "2.15.11", |
| 206 |
"_nodeVersion": "4.8.4", |
| 207 |
"_npmUser": { |
| 208 |
"name": "sindresorhus", |
| 209 |
"email": "[email protected]" |
| 210 |
}, |
| 211 |
"dist": { |
| 212 |
"shasum": "16b5cafc07dbe3676c1b1999177823d6503acb0c", |
| 213 |
"tarball": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz" |
| 214 |
}, |
| 215 |
"maintainers": [ |
| 216 |
{ |
| 217 |
"name": "sindresorhus", |
| 218 |
"email": "[email protected]" |
| 219 |
} |
| 220 |
], |
| 221 |
"_npmOperationalInternal": { |
| 222 |
"host": "s3://npm-registry-packages", |
| 223 |
"tmp": "tmp/url-parse-lax-3.0.0.tgz_1509741338773_0.5627476745285094" |
| 224 |
}, |
| 225 |
"directories": {} |
| 226 |
}, |
| 227 |
"4.0.0": { |
| 228 |
"name": "url-parse-lax", |
| 229 |
"version": "4.0.0", |
| 230 |
"description": "Lax url.parse() with support for protocol-less URLs & IPs", |
| 231 |
"license": "MIT", |
| 232 |
"repository": { |
| 233 |
"type": "git", |
| 234 |
"url": "git+https://github.com/sindresorhus/url-parse-lax.git" |
| 235 |
}, |
| 236 |
"author": { |
| 237 |
"name": "Sindre Sorhus", |
| 238 |
"email": "[email protected]", |
| 239 |
"url": "sindresorhus.com" |
| 240 |
}, |
| 241 |
"engines": { |
| 242 |
"node": ">=8" |
| 243 |
}, |
| 244 |
"scripts": { |
| 245 |
"test": "xo && ava" |
| 246 |
}, |
| 247 |
"keywords": [ |
| 248 |
"url", |
| 249 |
"uri", |
| 250 |
"parse", |
| 251 |
"parser", |
| 252 |
"loose", |
| 253 |
"lax", |
| 254 |
"protocol", |
| 255 |
"less", |
| 256 |
"protocol-less", |
| 257 |
"ip", |
| 258 |
"ipv4", |
| 259 |
"ipv6" |
| 260 |
], |
| 261 |
"dependencies": { |
| 262 |
"prepend-http": "^3.0.1" |
| 263 |
}, |
| 264 |
"devDependencies": { |
| 265 |
"ava": "^2.1.0", |
| 266 |
"xo": "^0.24.0" |
| 267 |
}, |
| 268 |
"gitHead": "ec2996366f094edd7d719cdb4aa0536acd2ff516", |
| 269 |
"bugs": { |
| 270 |
"url": "https://github.com/sindresorhus/url-parse-lax/issues" |
| 271 |
}, |
| 272 |
"homepage": "https://github.com/sindresorhus/url-parse-lax#readme", |
| 273 |
"_id": "[email protected]", |
| 274 |
"_nodeVersion": "8.16.0", |
| 275 |
"_npmVersion": "6.9.0", |
| 276 |
"_npmUser": { |
| 277 |
"name": "sindresorhus", |
| 278 |
"email": "[email protected]" |
| 279 |
}, |
| 280 |
"dist": { |
| 281 |
"integrity": "sha512-CazaJJZUPr1EWmHjcntgS1F1q6YOpQROD6Z+aTb9obxgOFsRydnqYkRCh5xDJ3LhqTID46JrWaT7PsF7Oms0PA==", |
| 282 |
"shasum": "94f9b0dd8190e8baee1ce2049f79e5c67dc3318b", |
| 283 |
"tarball": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-4.0.0.tgz", |
| 284 |
"fileCount": 4, |
| 285 |
"unpackedSize": 4590, |
| 286 |
"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" |
| 287 |
}, |
| 288 |
"maintainers": [ |
| 289 |
{ |
| 290 |
"name": "sindresorhus", |
| 291 |
"email": "[email protected]" |
| 292 |
} |
| 293 |
], |
| 294 |
"directories": {}, |
| 295 |
"_npmOperationalInternal": { |
| 296 |
"host": "s3://npm-registry-packages", |
| 297 |
"tmp": "tmp/url-parse-lax_4.0.0_1560274639544_0.024723955458921143" |
| 298 |
}, |
| 299 |
"_hasShrinkwrap": false |
| 300 |
} |
| 301 |
}, |
| 302 |
"readme": "# url-parse-lax [](https://travis-ci.org/sindresorhus/url-parse-lax)\n\n> Lax [`url.parse()`](https://nodejs.org/docs/latest/api/url.html#url_url_parse_urlstr_parsequerystring_slashesdenotehost) with support for protocol-less URLs & IPs\n\n\n## Install\n\n```\n$ npm install url-parse-lax\n```\n\n\n## Usage\n\n```js\nconst urlParseLax = require('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}\n*/\n\nurlParseLax('[2001:db8::]:8000');\n/*\n{\n\tprotocol: null,\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: 'http://[2001:db8::]:8000/'\n}\n*/\n```\n\nAnd with the built-in `url.parse()`:\n\n```js\nconst url = require('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',\n\tpath: 'sindresorhus',\n\thref: 'sindresorhus'\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\n## API\n\n### urlParseLax(url, options?)\n\n#### url\n\nType: `string`\n\nURL to parse.\n\n#### options\n\nType: `object`\n\n##### https\n\nType: `boolean`<br>\nDefault: `true`\n\nPrepend `https://` instead of `http://` to protocol-less URLs.\n\n\n## Related\n\n- [url-format-lax](https://github.com/sindresorhus/url-format-lax) - Lax `url.format()` that formats a hostname and port into IPv6-compatible socket form of `hostname:port`\n\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-url-parse-lax?utm_source=npm-url-parse-lax&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n", |
| 303 |
"maintainers": [ |
| 304 |
{ |
| 305 |
"name": "sindresorhus", |
| 306 |
"email": "[email protected]" |
| 307 |
} |
| 308 |
], |
| 309 |
"time": { |
| 310 |
"modified": "2019-06-11T17:37:22.262Z", |
| 311 |
"created": "2015-07-13T11:21:35.694Z", |
| 312 |
"1.0.0": "2015-07-13T11:21:35.694Z", |
| 313 |
"2.0.0": "2017-10-17T10:21:42.728Z", |
| 314 |
"3.0.0": "2017-11-03T20:35:38.836Z", |
| 315 |
"4.0.0": "2019-06-11T17:37:19.769Z" |
| 316 |
}, |
| 317 |
"homepage": "https://github.com/sindresorhus/url-parse-lax#readme", |
| 318 |
"keywords": [ |
| 319 |
"url", |
| 320 |
"uri", |
| 321 |
"parse", |
| 322 |
"parser", |
| 323 |
"loose", |
| 324 |
"lax", |
| 325 |
"protocol", |
| 326 |
"less", |
| 327 |
"protocol-less", |
| 328 |
"ip", |
| 329 |
"ipv4", |
| 330 |
"ipv6" |
| 331 |
], |
| 332 |
"repository": { |
| 333 |
"type": "git", |
| 334 |
"url": "git+https://github.com/sindresorhus/url-parse-lax.git" |
| 335 |
}, |
| 336 |
"author": { |
| 337 |
"name": "Sindre Sorhus", |
| 338 |
"email": "[email protected]", |
| 339 |
"url": "sindresorhus.com" |
| 340 |
}, |
| 341 |
"bugs": { |
| 342 |
"url": "https://github.com/sindresorhus/url-parse-lax/issues" |
| 343 |
}, |
| 344 |
"license": "MIT", |
| 345 |
"readmeFilename": "readme.md", |
| 346 |
"users": { |
| 347 |
"antixrist": true, |
| 348 |
"huhgawz": true, |
| 349 |
"gavinning": true |
| 350 |
} |
| 351 |
} |