{"name":"mongodb-connection-string-url","version":"7.0.2","keywords":["password","prompt","tty"],"license":"Apache-2.0","_id":"mongodb-connection-string-url@7.0.2","maintainers":[{"name":"dbx-node","email":"dbx-node@mongodb.com"},{"name":"dariakp","email":"daria.pardue@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"}],"homepage":"https://github.com/mongodb-js/mongodb-connection-string-url","bugs":{"url":"https://github.com/mongodb-js/mongodb-connection-string-url/issues"},"tsd":{"directory":"test/types","compilerOptions":{"module":"commonjs","strict":true,"target":"esnext","moduleResolution":"node"}},"dist":{"shasum":"a58163e04a900b7da38054de03b36d6f8b6d3ad1","tarball":"http://registry-npm.ywwl.com/mongodb-connection-string-url/download/mongodb-connection-string-url-7.0.2.tgz","fileCount":10,"integrity":"sha512-ZoS07RoFqpKYQwAk59qmrx8+jJHNHU30UjlU96QktiGn1ltvDr+vCznLX5DiUBLEpMAHatHNWV1nM/74ul66kA==","signatures":[{"sig":"MEQCIC2th8QqpMBc8CE7hbLurWuwzeoWZydmBoO/6Uxz+06XAiBYf6YoO6TCsEYlGw57rs55egSDq8zDnYnPCyZ1XkSdgA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/mongodb-connection-string-url@7.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":38882,"size":11144,"noattachment":false,"key":"/mongodb-connection-string-url/-/mongodb-connection-string-url-7.0.2.tgz"},"main":"lib/index.js","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":"a084dac19e6d7babbc95178af4339f9591efe52c","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","compile-ts":"tsc -p tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:edd30e7b-9ba0-4f67-ab24-680f5093da74"}},"repository":{"url":"git+https://github.com/mongodb-js/mongodb-connection-string-url.git","type":"git"},"_npmVersion":"12.0.1","description":"MongoDB connection strings, based on the WhatWG URL API","directories":{},"_nodeVersion":"24.18.0","dependencies":{"whatwg-url":"^14.1.0","@types/whatwg-url":"^13.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^17.1.0","tsd":"^0.33.0","chai":"^4.2.0","mocha":"^11.0.1","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":{"tmp":"tmp/mongodb-connection-string-url_7.0.2_1784127348627_0.20974016431395848","host":"s3://npm-registry-packages-npm-production"},"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## LICENSE\n\nApache-2.0\n","publish_time":1784127348747,"_cnpm_publish_time":1784127348747,"dist-tags":{"alpha":"4.0.0-alpha","latest":"7.0.3"}}