{"name":"incomplete-url","version":"1.0.0","keywords":["uri","url","whatwg"],"author":{"url":"https://www.svachon.com/","name":"Steven Vachon","email":"contact@svachon.com"},"license":"MIT","_id":"incomplete-url@1.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":"560131595e8bf6003e6224708f5a845adfa6b5f3","tarball":"http://registry-npm.ywwl.com/incomplete-url/download/incomplete-url-1.0.0.tgz","integrity":"sha512-QyjEAEQyQXA4njLTTR55YhmBLMqCLDFiHZbqeoBjQHirLWwthv/Je9JzxFuJadeN/8YPFgnUFx+RFgjw5AXqEQ==","signatures":[{"sig":"MEUCIQC5uokgFC0ekI1fDeQKudL1Ga0jGVypWyzsT2mDVbrUJAIgOpeA/PM3ADF4iaz6DuOeYcwvziOXdG9ljuixD3I36Tw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2486,"noattachment":false,"key":"/incomplete-url/-/incomplete-url-1.0.0.tgz"},"files":["index.js"],"engines":{"node":">= 6"},"gitHead":"8da304ab7344613e55206cd9cd32f82d3b1f50c6","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":"5.0.4","description":"Custom-remove features of a WHATWG URL implementation.","directories":{},"_nodeVersion":"8.1.2","dependencies":{"universal-url":"^1.0.0"},"devDependencies":{"nyc":"^11.0.3","chai":"^4.0.2","mocha":"^3.4.2","coveralls":"^2.13.1"},"_npmOperationalInternal":{"tmp":"tmp/incomplete-url-1.0.0.tgz_1498793563546_0.9094364701304585","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":1498793563676,"_cnpm_publish_time":1498793563676,"dist-tags":{"latest":"5.0.0","rc":"5.0.0-rc"}}