{"name":"incomplete-url","version":"3.0.0","keywords":["uri","url","whatwg"],"author":{"url":"https://www.svachon.com/","name":"Steven Vachon","email":"contact@svachon.com"},"license":"MIT","_id":"incomplete-url@3.0.0","maintainers":[{"name":"stevenvachon","email":"contact@svachon.com"}],"homepage":"https://github.com/stevenvachon/incomplete-url#readme","bugs":{"url":"https://github.com/stevenvachon/incomplete-url/issues"},"dist":{"shasum":"b87bcf261bddbfeca419596ae3501a31940777e6","tarball":"http://registry-npm.ywwl.com/incomplete-url/download/incomplete-url-3.0.0.tgz","fileCount":4,"integrity":"sha512-Nil6QqyCbOqYsHxmvzSz/ZQVEvnjoSnE1WVs1SMF3ZfokVI2wXAqSCSEJtn/W4qN4GzSQhM6SMqvwUo2W1zrKQ==","signatures":[{"sig":"MEUCIBv8tTOW4BTclJK+TL+fuz45EtlIMmoFg/v/DAB0+dHpAiEAs8xwdD399EiBpBe8uRCtg9AcSCAeqbXayQvhDIo6H5U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5988,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcKm+7CRA9TVsSAnZWagAAtAsP/01vvzKWc+bsXiLgac9W\nuFa4ESLAi1gdMtJkHgpcFrfsQkJ11oFZqPKozTLGfhb2DMHIBu9S5908U72w\n8o3XkHqDQY51BHOi5uU57RjixDV+2P4XtXfo1MN5kWYxJvtFQG+0tzlmDxii\nUeVICwyZwNnbfMFqR0sdsirEyDaLDfNXaLSUsHVCGeCOWwAmZpd7sscT1J8+\nIJkSOVlS+aj6HwtcQZDg53u9THqUmD8JY5cZ6ns4CHBeXJxYCU0yI7M4ngB8\nRNTw4Fr8S7ehJMJ5NEE9hhQ2XqtoHHkTX3C1dZink0H52ov4lO/9qaZgB5Ui\nq7bodW2uI9K7RgkT8ocSB7HFF7jxG8uv0p4l8TI9z/Ghacs455Njyf0f8E4q\nbKzcvrrJOsMya2hD5r5lGocSKws4UCsSNbCwx6fHoZPA1ymZst83HizKw9oC\nZakczlfcFRJ8PIUv9O9FhjuWq1Pgh4N3zDZOLsnhrPQ6NWedWxBOimZwk+nB\nJqWfgVJ0Oaf15+taeVYlQajSanp3azcAxcx8+MnogouPXe0hJwFmAFwsLZ36\nU4gRGjpm8pCbrFEQ2HzjtBtIlzAsTU+c5vylDUgmcoW99CTp4o/kuElTY8qd\nNk8Bqcz+zWkb7kLgC+i3aGFR8WtbTj5gezSMXcAoAdvPYCb7zb4azWDWTamP\nNqQ/\r\n=Dc2c\r\n-----END PGP SIGNATURE-----\r\n","size":2576,"noattachment":false,"key":"/incomplete-url/-/incomplete-url-3.0.0.tgz"},"engines":{"node":">= 8"},"gitHead":"d9d613c81274972a8a78963ce94d0c35f211737f","scripts":{"ci":"npm run test && nyc report --reporter=text-lcov | coveralls","test":"nyc --reporter=text-summary mocha test --check-leaks --bail","posttest":"nyc report --reporter=html"},"_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"deprecated":"use v4.x","repository":{"url":"git+https://github.com/stevenvachon/incomplete-url.git","type":"git"},"_npmVersion":"6.4.1","description":"Custom-remove features of a WHATWG URL implementation.","directories":{},"_nodeVersion":"10.14.2","dependencies":{"universal-url":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^13.1.0","chai":"^4.2.0","mocha":"^5.2.0","coveralls":"^3.0.2"},"_npmOperationalInternal":{"tmp":"tmp/incomplete-url_3.0.0_1546284986859_0.6360273454941694","host":"s3://npm-registry-packages"},"readme":"# incomplete-url [![NPM Version][npm-image]][npm-url] ![Build Status][ghactions-image] [![Coverage Status][codecov-image]][codecov-url]\n\n> Custom-remove features of a [`URL`](https://mdn.io/URL) implementation.\n\nThis is useful when simulating the incomplete `URL` implementations available in some web browsers from 2017.\n\n> [!NOTE]\n>\n> If you need to support older versions of Node.js (going back to `8.x`), use `4.x` of this package.\n\n## Install\n\n```shell\nnpm install incomplete-url\n```\n\n## Usage\n\n```js\nimport customizeURL from 'incomplete-url';\n\nconst options = {\n  paramsExclusions: ['sort'],\n  urlExclusions: ['origin'],\n};\n\nconst { IncompleteURL, IncompleteURLSearchParams } = customizeURL(options);\n\nconst url = new IncompleteURL('http://domain/');\nconst params = new IncompleteURLSearchParams('param=value');\n```\n\n## Options\n\n### `paramsExclusions`\n\nType: `Array`  \nDefault value: `[]`  \nThe output `URLSearchParams` class (and `URL::searchParams`) will not expose each listed property/method when instantiated.\n\n### `urlExclusions`\n\nType: `Array`  \nDefault value: `[]`  \nThe output `URL` class will not expose each listed property/method when instantiated.\n\n[npm-image]: https://img.shields.io/npm/v/incomplete-url\n[npm-url]: https://npmjs.com/package/incomplete-url\n[ghactions-image]: https://img.shields.io/github/actions/workflow/status/stevenvachon/incomplete-url/test.yml\n[codecov-image]: https://img.shields.io/codecov/c/github/stevenvachon/incomplete-url\n[codecov-url]: https://app.codecov.io/github/stevenvachon/incomplete-url\n","publish_time":1546284986975,"_cnpm_publish_time":1546284986975,"dist-tags":{"latest":"5.0.0","rc":"5.0.0-rc"}}