{"_id":"bare-url@2.5.5","bugs":{"url":"https://github.com/holepunchto/bare-url/issues"},"dist":{"shasum":"2e8c18db11393aa6cae6ff246fdcda34615aacd3","tarball":"http://registry-npm.ywwl.com/bare-url/download/bare-url-2.5.5.tgz","fileCount":27,"integrity":"sha512-iM9qJCruvpt2rPaLsrumVDru9pogI7PHziHIa9kTNRFt8C8HuSa+kI9kFezK+NvHEFnnz71rKGZ1EAilq/3V/Q==","signatures":[{"sig":"MEQCIDfwNgEyjqKPQTOrLLVttj5+OH8tkOjwus19OvGqzNIVAiAYpflmAmCc5TIY03r7s/AyFzsppnRQSzFoVN1JU8WfZg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAgU0Ney+RfdHHFipxsDRHLNSJ9t5nYjFzvaW4MUCeqjAiEA3x+QYQemPD9uTMDO7r+9D51AbfysL1lzNtgWtVxgCQc="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/bare-url@2.5.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":3730192,"size":1558139,"noattachment":false,"key":"/bare-url/-/bare-url-2.5.5.tgz"},"name":"bare-url","addon":true,"types":"./index.d.ts","author":{"name":"Holepunch"},"exports":{".":{"types":"./index.d.ts","default":"./index.js"},"./global":{"types":"./global.d.ts","default":"./global.js"},"./package":"./package.json"},"gitHead":"a2399105bc37f38f9290cc5f673ca11c06e50be2","license":"Apache-2.0","scripts":{"lint":"prettier --check . && lunte","test":"brittle-bare --coverage test.js","format":"prettier --write . && lunte --fix"},"version":"2.5.5","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"6baa2f2a-919b-4a9e-b5b9-48ad9c05e115"}},"homepage":"https://github.com/holepunchto/bare-url","repository":{"url":"git+https://github.com/holepunchto/bare-url.git","type":"git"},"_npmVersion":"11.19.0","description":"WHATWG URL implementation for JavaScript","directories":{},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_nodeVersion":"24.21.0","dependencies":{"bare-path":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"lunte":"^1.6.0","brittle":"^3.3.2","prettier":"^3.3.3","cmake-bare":"^1.8.1","cmake-fetch":"^1.0.0","prettier-config-holepunch":"^2.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bare-url_2.5.5_1791817761729_0.935329821102572"},"readme":"# bare-url\n\nWHATWG URL implementation for JavaScript, built on <https://github.com/holepunchto/liburl>. Provides `URL` and `URLSearchParams` classes compatible with the WHATWG URL Standard.\n\n```\nnpm i bare-url\n```\n\n## Usage\n\n```js\nconst { URL, URLSearchParams } = require('bare-url')\n\nconst url = new URL('https://example.com/path?foo=bar#hash')\n\nconsole.log(url.hostname) // 'example.com'\nconsole.log(url.pathname) // '/path'\nconsole.log(url.searchParams.get('foo')) // 'bar'\n```\n\nTo register `URL` and `URLSearchParams` as globals:\n\n```js\nrequire('bare-url/global')\n```\n\n## API\n\nSee the [`bare-url` reference](https://docs.pears.com/reference/bare/modules/bare-url).\n\n## Threat model\n\n`bare-url` is one of the addons Bare compiles into its binary, so it inherits [Bare's threat model](https://github.com/holepunchto/bare/blob/main/docs/threat-model.md). See [`docs/threat-model.md`](docs/threat-model.md) for where this addon sits in it.\n\n## License\n\nApache-2.0\n","publish_time":1791817761857,"_cnpm_publish_time":1791817761857,"dist-tags":{"latest":"2.5.5"}}