{"name":"incomplete-url","version":"2.0.0","keywords":["uri","url","whatwg"],"author":{"url":"https://www.svachon.com/","name":"Steven Vachon","email":"contact@svachon.com"},"license":"MIT","_id":"incomplete-url@2.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":"9763ce602e281adf1ede1120fffe9840afbafbd5","tarball":"http://registry-npm.ywwl.com/incomplete-url/download/incomplete-url-2.0.0.tgz","fileCount":4,"integrity":"sha512-LnzR5bPGwvu02fOKM6j36IN4N0sIQ+uLvubAscTr4OdpU9QE24e0v8XImTr2vla7pw4Fmp7tKFE4p6IrfaH/ag==","signatures":[{"sig":"MEYCIQDJ6AbBWHetOJkdpF6DfBM/18yojVkoR+Nhs1ia7o99qwIhAKnY7PC6a2qifqhZ9spXIfWrjru2+Rl946Hz/dMTAJCG","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb/ssqCRA9TVsSAnZWagAAlOMP/j/w329DNJ+XFtrfD6iv\nWQgJnE3FP8SIGathWv5TeRIgj00s12i0ceC5P5TCA1ug5v9r6IwOtGL8aYAc\nTAOVRUcaoHAKyqxFLELz37noM6O9WAMh8QV2TNf1zCYJSkh0T2180oeESfJp\n4nl+YynSwGhcm2lAUF3xnNEwt7gHuh/3nT7xWiktBeDzzipTI1M4rEdCFd8H\ntDbBbKP/G8xADYi+aMzbGbUkiJlHtxa2Wb9EjRFhexcWfaRz/hJNx5Ywnu9w\nGFopGvIGDgpxh/vSIIepkwigSh9wmB7odyHpu/UXuk0ayt8OIECjxZdOKadC\noPDx5jI/wKOTwU8umUGHHuC6W8liTwUtIhIcIq/pv47XeZUjkR8POgNXbbOo\nBWTmqkxJs6W1QvKCf4+oTqzLM+5Hd+9U/UkNhByXHcH5jr9illEiIjUJd/J6\ntRm8JeZLXIvjo//5Nv1LvaWuQg0misITqnDGa1SvimftXYCNKBgPevMDdvTw\noDzOt+rmvzIHTWVJchgMM4b4uXR/cptL6RdozO3MLjsW/tw8JJxwNmdquVVR\nz1P384n8EzXe93S3v7LDs4lqq1rinHAnZNx0JVGP11K01r884FgLVOdLj5z5\nqs+A5vZ8lOt/dVlhsyZqJaAks6O+MqnUvkHkwlSFZ1F6JkfGQZxnUt8ZRY+c\niHsb\r\n=QJcm\r\n-----END PGP SIGNATURE-----\r\n","size":2536,"noattachment":false,"key":"/incomplete-url/-/incomplete-url-2.0.0.tgz"},"engines":{"node":">= 6"},"gitHead":"c1c26f7390e1c51d504b4e46ef37dfe92fae8a6f","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"},"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.11.0","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_2.0.0_1543424809988_0.13170867710899947","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":1543424810098,"_cnpm_publish_time":1543424810098,"dist-tags":{"latest":"5.0.0","rc":"5.0.0-rc"}}