{"name":"mongodb-connection-string-url","version":"3.0.2","keywords":["password","prompt","tty"],"license":"Apache-2.0","_id":"mongodb-connection-string-url@3.0.2","homepage":"https://github.com/mongodb-js/mongodb-connection-string-url","bugs":{"url":"https://github.com/mongodb-js/mongodb-connection-string-url/issues"},"dist":{"shasum":"e223089dfa0a5fa9bf505f8aedcbc67b077b33e7","tarball":"http://registry-npm.ywwl.com/mongodb-connection-string-url/download/mongodb-connection-string-url-3.0.2.tgz","fileCount":10,"integrity":"sha512-rMO7CGo/9BFwyZABcKAWL8UJwH/Kc2x0g72uhDWzG48URRax5TCIcJ7Rc3RZqffZzO/Gwff/jyKwCU9TN8gehA==","signatures":[{"sig":"MEUCIDpteS4OX4BEiBWUf2Xl4froPjwRchcF0EqKj/ToK3cyAiEAjv68CR9xncx5GXwbx+gJ+aR5KlqQHLjSjZosMsgIGo4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/mongodb-connection-string-url@3.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":38444,"size":10977,"noattachment":false,"key":"/mongodb-connection-string-url/-/mongodb-connection-string-url-3.0.2.tgz"},"main":"lib/index.js","types":"./lib/index.d.ts","exports":{"import":"./.esm-wrapper.mjs","require":"./lib/index.js"},"gitHead":"26e2c12671f39743abc8a6ba884b8d89b41ca0c5","scripts":{"lint":"eslint \"{src,test}/**/*.ts\"","test":"npm run lint && npm run build && 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":"dbx-node","email":"dbx-node@mongodb.com"},"repository":{"url":"git+https://github.com/mongodb-js/mongodb-connection-string-url.git","type":"git"},"_npmVersion":"11.0.0","description":"MongoDB connection strings, based on the WhatWG URL API","directories":{},"_nodeVersion":"22.13.0","dependencies":{"whatwg-url":"^14.1.0 || ^13.0.0","@types/whatwg-url":"^11.0.2"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.2.0","mocha":"^11.0.1","eslint":"^7.9.0","ts-node":"^10.9.1","typescript":"^4.7.4","@types/chai":"^5.0.1","@types/node":"^22.9.0","@types/mocha":"^8.0.3","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-standard":"^14.1.1","eslint-plugin-standard":"^5.0.0","@typescript-eslint/parser":"^4.2.0","eslint-config-semistandard":"^15.0.1","@typescript-eslint/eslint-plugin":"^4.2.0"},"_npmOperationalInternal":{"tmp":"tmp/mongodb-connection-string-url_3.0.2_1736881896001_0.9915784972224462","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":1736881896178,"maintainers":[{"email":"dana.groff+mongodb-js@mongodb.com","name":"mongodb-js-user"},{"email":"thomas@rueckstiess.net","name":"rueckstiess"},{"email":"durran@gmail.com","name":"durran"},{"email":"alexander.schroll+npm@mongodb.com","name":"alexander_schroll"},{"email":"mbroadst@gmail.com","name":"mbroadst"},{"email":"hello@hswolff.com","name":"hswolff"},{"email":"satya@mongodb.com","name":"satyasinha"},{"email":"matt@mattfairbrass.com","name":"matt_d_rat"},{"email":"jeffrey.allen@10gen.com","name":"jeff-allen-mongo"},{"email":"jonathan.balsano@mongodb.com","name":"jonathan.balsano"},{"email":"build-accounts@10gen.com","name":"mongodb-build"},{"email":"johnjackweir@gmail.com","name":"jack.weir"},{"email":"maurizio.cas@gmail.com","name":"mcasimir"},{"email":"kristina.stefanova@mongodb.com","name":"kristina.stefano"},{"email":"nathan.smyth@10gen.com","name":"jarjee"},{"email":"shaketbaby@gmail.com","name":"shaketbaby"},{"email":"iteng@mongodb.com","name":"devtoolsbot"},{"email":"anna@addaleax.net","name":"addaleax"},{"email":"sergey.petushkov@protonmail.com","name":"gribnoysup"},{"email":"mutukrish@gmail.com","name":"mutukrish"},{"email":"james.wang@mongodb.com","name":"mongo-j"},{"email":"neal.beeken@mongodb.com","name":"nbbeeken"},{"email":"dbx-node@mongodb.com","name":"dbx-node"},{"email":"irinchev@me.com","name":"nirinchev"},{"email":"bailey.pearson@gmail.com","name":"pearsb1"}],"_cnpm_publish_time":1736881896178,"dist-tags":{"alpha":"4.0.0-alpha","latest":"7.0.3"}}