{"name":"mongodb-connection-string-url","version":"1.0.0","keywords":["password","prompt","tty"],"license":"Apache-2.0","_id":"mongodb-connection-string-url@1.0.0","maintainers":[{"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"},"dist":{"shasum":"6be8dfb16fa8231a8bce9e74868a2f779810f8c6","tarball":"http://registry-npm.ywwl.com/mongodb-connection-string-url/download/mongodb-connection-string-url-1.0.0.tgz","fileCount":10,"integrity":"sha512-s2kSyqM/PgvLHKzc67eK/syC4n2eXu4Q2XWA4gJOgMvOk1/bsZ8jW04EBFabfNHgw66gYSovx9F623eKEkpfGA==","signatures":[{"sig":"MEUCIF0g9CN6vbGDyAkKv8VarwRInDEHTAHgBppZ4Kzpif4CAiEAu4ILbjkQX3/O8QzM1qcL8eiCD/JRdmc6xzSMBf5huaM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24979,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyP3+CRA9TVsSAnZWagAAeaoP/i5W2Q3i8mPZxr1AziqH\nEZmi/RqTUvCIJuewR/7Np21sXlmAAdKpOiyV9EQSpQ5/n2/BOw7f64oWfFX0\nc0QcCJu/y5Z6TxMbfZyjsvKqw6T80hs+pYprNRfduk60BFYSufnzJDcuJLwp\ndTUPmPTE4qRqegI7LJ5l99I+q4oUp+Yqwcy9dIK0dRl1A89+JMkaTA1zzA3R\nnqPYNJ/OWY0XP3YjqObUE0FjTfCPbYO1Y+FrLm968ys9bz1X5/Fv28Y+u1ZL\nDHAKKd95Xz7RO9zutjdpJYjb61vny2Jyz7fouhvAC/3Jwvryb/1AeXepv5s2\njs3Mk0aKrz6THeWa0ChMYU2U0m7ACESySAjUI0UZtSCztv5qPP9juydskQre\nzXcRthF1xQWGCRMMKPtR1a/SV3ToR0rm9YdEkTc1eBssbcr7wu2vMj3mooI7\np8ULvh2nWDtstLYtqSqTKEWGErCAby4FRtreIGByXxyFtibRIlBj3YM9bRIo\nX+8BKbyiK7c4N87rEikmTkVWZj1YWn58dxvVcAfg1YZGSvRGK7LbNFRFo3MA\n7m0iXAsxFcUmC3XQ0k+ECx9vSFrtNdy4enC5op5Ml92vWPb2CT85NXEGxejd\nEITDGRqiPRPLWcySHDXe4I2Bx0YWnwMY6TQxTJhNxItaq57cJ9eStTpNh4vk\nVFzJ\r\n=dPa/\r\n-----END PGP SIGNATURE-----\r\n","size":8131,"noattachment":false,"key":"/mongodb-connection-string-url/-/mongodb-connection-string-url-1.0.0.tgz"},"main":"lib/index.js","exports":{"import":"./.esm-wrapper.mjs","require":"./lib/index.js"},"gitHead":"d96168c30bd50678ea8aa26702c0026001228c71","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":"6.14.13","description":"MongoDB connection strings, based on the WhatWG URL API","directories":{},"_nodeVersion":"14.17.0","dependencies":{"whatwg-url":"^8.4.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.2.0","mocha":"^8.1.3","eslint":"^7.9.0","ts-node":"^9.0.0","typescript":"^4.0.3","@types/chai":"^4.2.5","@types/node":"^14.11.1","@types/mocha":"^8.0.3","gen-esm-wrapper":"^1.1.0","@types/whatwg-url":"^8.0.0","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_1.0.0_1623784957962_0.09760649168955071","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":1623784958149,"_cnpm_publish_time":1623784958149,"dist-tags":{"alpha":"4.0.0-alpha","latest":"7.0.3"}}