{"_id":"mongodb-connection-string-url@7.0.3","tsd":{"directory":"test/types","compilerOptions":{"module":"commonjs","strict":true,"target":"esnext","moduleResolution":"node"}},"bugs":{"url":"https://github.com/mongodb-js/mongodb-connection-string-url/issues"},"dist":{"shasum":"c88676fc7cda77f700e9afab2a332246bcf0d016","tarball":"http://registry-npm.ywwl.com/mongodb-connection-string-url/download/mongodb-connection-string-url-7.0.3.tgz","fileCount":10,"integrity":"sha512-5I/pX3C2gPEz1EDdYMdZwBx1b/jE/f+J+KItSUJ02uQZ66bbe7kHKjv2uqCHJWaMCagem3dyfWqoAcv+XYZ6aw==","signatures":[{"sig":"MEUCIGexIrfS8FvQYlFKuxrV/ymoP7cq+a2E34Fb61kp4FtYAiEAoJJrf9DXfxDIbfEPpuf0IQDa1MmuDtJYiJ8Y+WzdCF4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD/ubSozU7AF+gEYrLtEYl+HelIjhfgFMm0UMvXtbd8lAIgUxPKo66R/Y+mOW6lQ7KRImZlxsI/a3aQhEW5+JmF4n4="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/mongodb-connection-string-url@7.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":39641,"size":11520,"noattachment":false,"key":"/mongodb-connection-string-url/-/mongodb-connection-string-url-7.0.3.tgz"},"main":"lib/index.js","name":"mongodb-connection-string-url","types":"lib/index.d.ts","engines":{"node":">=20.19.0"},"exports":{"import":{"types":"./lib/index.d.ts","default":"./.esm-wrapper.mjs"},"require":{"types":"./lib/index.d.ts","default":"./lib/index.js"}},"gitHead":"90e9cd81fedf61c372b0017b730c5984b1a514da","license":"Apache-2.0","scripts":{"lint":"ESLINT_USE_FLAT_CONFIG=false eslint \"{src,test}/**/*.ts\"","test":"npm run build && tsd && nyc mocha --colors -r ts-node/register test/*.ts","build":"npm run compile-ts && gen-esm-wrapper . ./.esm-wrapper.mjs","prepack":"npm run build","prepare":"git config core.hooksPath .githooks || true","compile-ts":"tsc -p tsconfig.json"},"version":"7.0.3","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"edd30e7b-9ba0-4f67-ab24-680f5093da74"}},"homepage":"https://github.com/mongodb-js/mongodb-connection-string-url","keywords":["password","prompt","tty"],"repository":{"url":"git+https://github.com/mongodb-js/mongodb-connection-string-url.git","type":"git"},"_npmVersion":"12.2.2","description":"MongoDB connection strings, based on the WhatWG URL API","directories":{},"maintainers":[{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"nbbeeken","email":"neal.beeken@mongodb.com"},{"name":"dbx-node","email":"dbx-node@mongodb.com"},{"name":"devtools-npm-user","email":"devtools-npm-user@mongodb.com"}],"_nodeVersion":"26.13.1","dependencies":{"whatwg-url":"^15.0.1","@types/whatwg-url":"^13.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^18.0.0","tsd":"^0.33.0","chai":"^4.2.0","mocha":"^12.0.3","eslint":"^9.33.0","ts-node":"^10.9.1","typescript":"^5.9.2","@types/chai":"^5.0.1","@types/node":"^22.9.0","@types/mocha":"^10.0.10","gen-esm-wrapper":"^1.1.3","eslint-plugin-node":"^11.1.0","eslint-plugin-import":"^2.22.0","eslint-plugin-promise":"^7.1.0","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.4","@typescript-eslint/parser":"^8.39.1","@typescript-eslint/eslint-plugin":"^8.39.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mongodb-connection-string-url_7.0.3_1794847985412_0.901655500186059"},"readme":"# mongodb-connection-string-url\n\nMongoDB connection strings, based on the WhatWG URL API\n\n```js\nimport ConnectionString from 'mongodb-connection-string-url';\n\nconst cs = new ConnectionString('mongodb://localhost');\ncs.searchParams.set('readPreference', 'secondary');\nconsole.log(cs.href); // 'mongodb://localhost/?readPreference=secondary'\n```\n\n## Deviations from the WhatWG URL package\n\n- URL parameters are case-insensitive\n- The `.host`, `.hostname` and `.port` properties cannot be set, and reading\n  them does not return meaningful results (and are typed as `never`in TypeScript)\n- The `.hosts` property contains a list of all hosts in the connection string\n- The `.href` property cannot be set, only read\n- There is an additional `.isSRV` property, set to `true` for `mongodb+srv://`\n- There is an additional `.clone()` utility method on the prototype\n  \n## AI Agent Configuration\nThis repository uses [agentskills.io](https://agentskills.io) conventions for AI coding agent\ninstructions. `AGENTS.md` is the canonical source of truth — tool-specific files like `CLAUDE.md`\nare generated references.\n\n### Adding a nested AGENTS.md\n\n1. Create an `AGENTS.md` in the target directory.\n2. `git add` the file.\n3. Run `scripts/symlink-claude-md.sh` to generate the companion `CLAUDE.md`.\n    - Note: `scripts/symlink-claude-md.sh` is vendored from an [internal repo](https://github.com/10gen/mongohouse/blob/master/scripts/symlink-claude-md.sh) and should not be edited directly.\n4. Stage and commit the files.\n \n## LICENSE\n\nApache-2.0\n","publish_time":1794847985532,"_cnpm_publish_time":1794847985532,"dist-tags":{"alpha":"4.0.0-alpha","latest":"7.0.3"}}