{"_id":"@ducphd2/gle-mongodb-store","name":"@ducphd2/gle-mongodb-store","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@ducphd2/gle-mongodb-store","version":"1.0.0","description":"Greenlock store for mongodb","main":"index.js","dependencies":{},"devDependencies":{"greenlock-store-test":"^3.0.2","mongodb":"^3.3.2"},"scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/ducphd2/gle-mongodb-store.git"},"keywords":["le-store","greenlock","letsencrypt","mongodb","mongo"],"bugs":{"url":"https://github.com/ducphd2/gle-mongodb-store/issues"},"homepage":"https://github.com/ducphd2/gle-mongodb-store","author":{"name":"ducphd2"},"license":"MIT","gitHead":"c7d9154d07bc3524219ada497b36aaf01fe2b232","_id":"@ducphd2/gle-mongodb-store@1.0.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-snvfnoqrPsNiHmsAvWEJ/FnJsHTD8tmwn4gXKgBAVHno2gacIWX0PiCGWF7Sp3zTFgHsf2BcsSd9IGmb6r8ZLQ==","shasum":"cba54ca2bce7c4fbbd2210e434502a9c8ce8481f","tarball":"https://registry.npmjs.org/@ducphd2/gle-mongodb-store/-/gle-mongodb-store-1.0.0.tgz","fileCount":4,"unpackedSize":5417,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCHwUgSVY9Rxd+RiA4ke5QaO2waNoAnIrQ8vPIQTxx+I0CIQDe75sB2wSxA7JKO7HA5jMCKT/xgcd/w852sz7FrBglcA=="}]},"_npmUser":{"name":"ducphd2","email":"ducclone00@gmail.com"},"directories":{},"maintainers":[{"name":"ducphd2","email":"ducclone00@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gle-mongodb-store_1.0.0_1700916163387_0.6236251608990258"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-25T12:42:43.293Z","1.0.0":"2023-11-25T12:42:43.679Z","modified":"2023-11-25T12:42:43.993Z"},"maintainers":[{"name":"ducphd2","email":"ducclone00@gmail.com"}],"description":"Greenlock store for mongodb","homepage":"https://github.com/ducphd2/gle-mongodb-store","keywords":["le-store","greenlock","letsencrypt","mongodb","mongo"],"repository":{"type":"git","url":"git+https://github.com/ducphd2/gle-mongodb-store.git"},"author":{"name":"ducphd2"},"bugs":{"url":"https://github.com/ducphd2/gle-mongodb-store/issues"},"license":"MIT","readme":"le-store-mongoz\n===============\n\n[![CircleCI](https://circleci.com/gh/daguej/le-store-mongoz.svg?style=svg)](https://circleci.com/gh/daguej/le-store-mongoz)\n\nThis module implements a dead-simple, zero-dependency mongodb store for [greenlock](https://www.npmjs.com/package/greenlock).  This allows you to persist your [Let's Encrypt](https://letsencrypt.org/) data in mongo for automated TLS certificate issuance and use.\n\nle-store-mongoz does not handle database connections itself; you must pass in `Collection` objects you [acquire](https://mongodb.github.io/node-mongodb-native/3.3/api/Db.html#collection) from the mongodb driver.\n\nExample\n-------\n\n    // once you've connected to mongodb and have a `Db` from `MongoClient`\n    \n    Greenlock.create({\n        …\n        store: require('le-store-mongoz').create(\n            db.collection('le-accounts'),\n            db.collection('le-certs')\n        )\n    });\n\n\nAPI\n---\n\n### `create(accountCollection, certCollection)`\n\nCreates a greenlock [store](https://www.npmjs.com/package/greenlock#store-implementation).\n\n- `accountCollection` - a mongodb [`Collection`](https://mongodb.github.io/node-mongodb-native/3.3/api/Collection.html) where your Let's Encrypt credentials will be stored.\n- `certCollection` - a mongodb [`Collection`](https://mongodb.github.io/node-mongodb-native/3.3/api/Collection.html) where your Let's Encrypt certificates and keys will be stored.\n\nWhy?\n----\nThere are other le-store-mongo* packages available; why another?\n\nAs of late 2019, other modules implementing a greenlock mongodb store brought in as many as *hundreds* of dependencies and/or were totally undocumented.  As both of these properties are distasteful, I was compelled to create another.","readmeFilename":"README.md"}