{"name":"incomplete-url","version":"5.0.0-rc","keywords":["uri","url","whatwg"],"author":{"url":"https://svachon.com","name":"Steven Vachon","email":"contact@svachon.com"},"license":"MIT","_id":"incomplete-url@5.0.0-rc","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":"43f72e7eb88589188aac8b38aa01128c8b7a0f72","tarball":"http://registry-npm.ywwl.com/incomplete-url/download/incomplete-url-5.0.0-rc.tgz","fileCount":11,"integrity":"sha512-M1fTACUWSl9n8MjNohgoqZ2yfPtX/KRTWF1Glo4WrAlHimfDACoX1eGew4ZxagncfxrRNQ7pmGe2EcHIGVjfgA==","signatures":[{"sig":"MEQCIE+/Bwb/8MG1bK3d1AwaoUIjYMNGom2GRTBcsT3yN6YHAiBy7yfMMUmohyw9b8woqV1BXL86cDO5NXeS+RiRuS1b3w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16173,"size":5237,"noattachment":false,"key":"/incomplete-url/-/incomplete-url-5.0.0-rc.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,"readmeFilename":"README.md","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-rc_1786823035432_0.40630209825765795","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Use 5.0.0","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":1786823035573,"_cnpm_publish_time":1786823035573,"dist-tags":{"latest":"5.0.0","rc":"5.0.0-rc"}}