{"name":"incomplete-url","version":"4.0.0","keywords":["uri","url","whatwg"],"author":{"url":"https://www.svachon.com/","name":"Steven Vachon","email":"contact@svachon.com"},"license":"MIT","_id":"incomplete-url@4.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":"4fcf0200185f843f46643a68ed5f2dcce5d03788","tarball":"http://registry-npm.ywwl.com/incomplete-url/download/incomplete-url-4.0.0.tgz","fileCount":4,"integrity":"sha512-7GHxld3xlKR/6w+ZNip42canv64IwXV0JIZpcj5DEoNf+AIxO4dp2PzKGgqraF59xOHqOHzOVn3FO6DbkEb/vQ==","signatures":[{"sig":"MEYCIQDCKpIMXcXXwhbW9G0jaQqjms4ylcmVXY/gu4q4uiDHngIhAOxj4l4e3dK1bNfWp+Bpq3E8flQvSWI5u7Z3Q2iigJtS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5983,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcKniICRA9TVsSAnZWagAAyb0P/juEU8tBshof52l6oYoL\nKOlXHYHlej+zVPcVcjNmeQuYDmL7yUQLrHhfKsd8iqTtfHmJhRIGSTloohmp\nPQYU+HS6Cw2G5zt6ziiYzaABGY27cMpmDqyYdXslkO07W83vOksSO1qWgLu6\n7ruSRDT8N4k5ueBpHzcV30YWDLP1g1FwCFICR3ScLerbadkZOikvqv58u1YG\nxctMZZehE6V36OYQ9Ood7T4Pg0Y0th/QA9waY11anXC4LxHWBP2Js5eMbB52\naRIJ558UMTphFy/Dldlij3izomPaSSUrH/3Y/IULCibO9dRYkk/eKrgSn3BN\nAs+Hscl5TIXaM54Oq3wKQHaLvA21pyrTi/m+ircKR/41GXYPg6Hl8ataPzhV\nODFfyb8ePC9exdQIemT9TKWk2ZvcTGBeK5vG9lFEmQ7yPfkxuoTWH9mISMAk\nJuHmsUV3cDQljjMR5ZKm9QbVB11n+Kdxkal0JW6P/PD+7dKUWkUC867f22UX\ndLHqv5W1VxzeIHzljYNyMTF31ZLIuuPH+6es0Ml7exMKZS3qnhKJc/olBf70\nsDfbh9lXzoEtUx6TZ8z8rZgyMICrxXEqUGzdesMmDzl/IROKYl1ojF3RuEEM\nx1H8G7fDYf7ZqZOuYwvuT1VKBSfRPOcM+h0/1kgIHM8qwbSDCNMbmB2IgSm3\nCrEW\r\n=fieo\r\n-----END PGP SIGNATURE-----\r\n","size":2575,"noattachment":false,"key":"/incomplete-url/-/incomplete-url-4.0.0.tgz"},"engines":{"node":">= 8"},"gitHead":"9139fb9ea6344af709c130198d86d04da272796d","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.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_4.0.0_1546287240429_0.38283981469730444","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":1546287240559,"_cnpm_publish_time":1546287240559,"dist-tags":{"latest":"5.0.0","rc":"5.0.0-rc"}}