{"name":"incomplete-url","version":"1.0.2","keywords":["uri","url","whatwg"],"author":{"url":"https://www.svachon.com/","name":"Steven Vachon","email":"contact@svachon.com"},"license":"MIT","_id":"incomplete-url@1.0.2","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":"217904a6cfa2cf0f319b72ee46cc5977abb75c21","tarball":"http://registry-npm.ywwl.com/incomplete-url/download/incomplete-url-1.0.2.tgz","integrity":"sha512-CGO4XwVZuxgR7igdzP5cKCfHUXPv8XrQWbEfFGnmvUEy6mLBejiYhUTSa8WTsh4caZshI8BjIcoMutRAwEvwHQ==","signatures":[{"sig":"MEUCIBXsb9Ig+wjlISndFOBd1GP+zbgPFt0pvq3TP6qqxpIdAiEA5tY0JRMep/NRO9oEBjKutim65vlJ7WClSuNzypjgnLk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2550,"noattachment":false,"key":"/incomplete-url/-/incomplete-url-1.0.2.tgz"},"files":["index.js"],"engines":{"node":">= 6"},"gitHead":"06f06fb37a72c8ded677f66bf2c84b5b49a27b2a","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.3","description":"Custom-remove features of a WHATWG URL implementation.","directories":{},"_nodeVersion":"8.1.3","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.2.tgz_1499307524980_0.5569387257564813","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":1499307525064,"_cnpm_publish_time":1499307525064,"dist-tags":{"latest":"5.0.0","rc":"5.0.0-rc"}}