{"name":"incomplete-url","version":"5.0.0","keywords":["uri","url","whatwg"],"author":{"url":"https://svachon.com","name":"Steven Vachon","email":"contact@svachon.com"},"license":"MIT","_id":"incomplete-url@5.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":"a4e78fbb9433db8d6750ae1ba7e0ce379dec2412","tarball":"http://registry-npm.ywwl.com/incomplete-url/download/incomplete-url-5.0.0.tgz","fileCount":11,"integrity":"sha512-dEXI1j9QybzKgEoJg7m2CuiV/X9w1+pyHcaskxWB42JD7esZWq7rvJQqqvQcdfL0mycOKEikgq3DY4S/w7hnLA==","signatures":[{"sig":"MEQCIEhAn5Eo128LiBCk5KyKYHVJJDCzV327V0y6Ozm7ub7wAiB0uLYP3FqQr2tYLM/7thMNUJ0joT1NxrRb2bbbjYji8g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16170,"size":5233,"noattachment":false,"key":"/incomplete-url/-/incomplete-url-5.0.0.tgz"},"type":"module","engines":{"node":">= 22"},"exports":"./dist/index.js","gitHead":"de6cc09cb3e18e4459243a172ac1190e063d5451","scripts":{"test":"npm run test:watch -- --reporter=verbose --run","build":"npm run build:spellcheck && npm run build:lint && npm run build:typecheck:supplemental && npm run build:compile","build:lint":"prettier --check '**/*.{config.js,json,md,ts}' '!coverage/**' '!dist/**'","test:watch":"vitest dev --coverage --coverage.exclude=src/*.test.ts --coverage.include=src/*.ts --coverage.reporter=html --coverage.reporter=lcov --coverage.reporter=text","build:compile":"tsc -p tsconfig.build.json","prepublishOnly":"npm run build && npm test","build:spellcheck":"cspell '**/*.{config.js,json,md,ts}' '!coverage/**' '!dist/**' '!node_modules/**' --no-progress","build:typecheck:supplemental":"tsc --project tsconfig.check.json"},"_npmUser":{"name":"stevenvachon","email":"contact@svachon.com"},"repository":{"url":"git+https://github.com/stevenvachon/incomplete-url.git","type":"git"},"_npmVersion":"11.12.1","description":"Custom-remove features of a URL implementation.","directories":{},"_nodeVersion":"24.15.0","_hasShrinkwrap":false,"devDependencies":{"cspell":"^10.0.1","vitest":"^4.1.10","prettier":"^3.9.6","typescript":"^7.0.2","@types/node":"^26.2.0","@vitest/coverage-v8":"^4.1.10"},"_npmOperationalInternal":{"tmp":"tmp/incomplete-url_5.0.0_1786823250560_0.66878415809497","host":"s3://npm-registry-packages-npm-production"},"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":1786823250709,"_cnpm_publish_time":1786823250709,"dist-tags":{"latest":"5.0.0","rc":"5.0.0-rc"}}