{"name":"mongodb-connection-string-url","version":"3.0.1","keywords":["password","prompt","tty"],"license":"Apache-2.0","_id":"mongodb-connection-string-url@3.0.1","maintainers":[{"name":"orechova","email":"paula.stachova@tutanota.com"},{"name":"himanshusinghs","email":"himanshu.singhs@outlook.in"},{"name":"c-buckingham","email":"christopher.buckingham@mongodb.com"},{"name":"mongo-j","email":"james.wang@mongodb.com"},{"name":"mabaasit","email":"baasit121@yahoo.com"},{"name":"alexander_schroll","email":"alexander.schroll+npm@mongodb.com"},{"name":"chuck.kalmanek","email":"chuck.kalmanek@10gen.com"},{"name":"mongodb-js-user","email":"dana.groff+mongodb-js@mongodb.com"},{"name":"rueckstiess","email":"thomas@rueckstiess.net"},{"name":"durran","email":"durran@gmail.com"},{"name":"lerouxb","email":"lerouxb@gmail.com"},{"name":"fredtruman","email":"fred.truman@mongodb.com"},{"name":"mbroadst","email":"mbroadst@gmail.com"},{"name":"hswolff","email":"hello@hswolff.com"},{"name":"satyasinha","email":"satya@mongodb.com"},{"name":"matt_d_rat","email":"matt@mattfairbrass.com"},{"name":"rhysm","email":"rhys.howell@10gen.com"},{"name":"tomhollander","email":"tomhollander@hotmail.com"},{"name":"alena.khineika","email":"alena.khineika@gmail.com"},{"name":"jeff-allen-mongo","email":"jeffrey.allen@10gen.com"},{"name":"mmarcon","email":"me@marcon.me"},{"name":"jonathan.balsano","email":"jonathan.balsano@mongodb.com"},{"name":"mongodb-build","email":"build-accounts@10gen.com"},{"name":"jack.weir","email":"johnjackweir@gmail.com"},{"name":"stennie","email":"stennie@cpan.org"},{"name":"mcasimir","email":"maurizio.cas@gmail.com"},{"name":"kristina.stefano","email":"kristina.stefanova@mongodb.com"},{"name":"jarjee","email":"nathan.smyth@10gen.com"},{"name":"shaketbaby","email":"shaketbaby@gmail.com"},{"name":"devtoolsbot","email":"iteng@mongodb.com"},{"name":"addaleax","email":"anna@addaleax.net"},{"name":"gribnoysup","email":"sergey.petushkov@protonmail.com"},{"name":"mutukrish","email":"mutukrish@gmail.com"}],"homepage":"https://github.com/mongodb-js/mongodb-connection-string-url","bugs":{"url":"https://github.com/mongodb-js/mongodb-connection-string-url/issues"},"dist":{"shasum":"c13e6ac284ae401752ebafdb8cd7f16c6723b141","tarball":"http://registry-npm.ywwl.com/mongodb-connection-string-url/download/mongodb-connection-string-url-3.0.1.tgz","fileCount":10,"integrity":"sha512-XqMGwRX0Lgn05TDB4PyG2h2kKO/FfWJyCzYQbIhXUxz7ETt0I/FqHjUeqj37irJ+Dl1ZtU82uYyj14u2XsZKfg==","signatures":[{"sig":"MEQCIHBSKrXYAX8/C0tOzORQ6kRYrECfwzcz/IPQc7Q8PcBDAiBn/lH5hoyN9SWmPRmtQQaeCvXOk3mJgW5CFQKlY5E6Kg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38433,"size":10972,"noattachment":false,"key":"/mongodb-connection-string-url/-/mongodb-connection-string-url-3.0.1.tgz"},"main":"lib/index.js","types":"./lib/index.d.ts","exports":{"import":"./.esm-wrapper.mjs","require":"./lib/index.js"},"gitHead":"69ddcdac101e3a2851b27be90910e5ce244ce53b","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":"addaleax","email":"anna@addaleax.net"},"repository":{"url":"git+https://github.com/mongodb-js/mongodb-connection-string-url.git","type":"git"},"_npmVersion":"10.5.2","description":"MongoDB connection strings, based on the WhatWG URL API","directories":{},"_nodeVersion":"20.13.1","dependencies":{"whatwg-url":"^13.0.0","@types/whatwg-url":"^11.0.2"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.2.0","mocha":"^8.1.3","eslint":"^7.9.0","ts-node":"^10.9.1","typescript":"^4.7.4","@types/chai":"^4.2.5","@types/node":"^14.11.1","@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":"^4.2.1","eslint-config-standard":"^14.1.1","eslint-plugin-standard":"^4.0.1","@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.1_1715372619245_0.2537252845011895","host":"s3://npm-registry-packages"},"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":1715372619574,"_cnpm_publish_time":1715372619574,"dist-tags":{"alpha":"4.0.0-alpha","latest":"7.0.3"}}