{"_id":"@101-ways/core-mongo-express","name":"@101-ways/core-mongo-express","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@101-ways/core-mongo-express","description":"Accelerator Mongo and Express package.","version":"0.1.0","main":"./dist/index.js","types":"./dist/index.d.ts","dependencies":{"tslib":"^2.6.2","@101-ways/core-express":"^0.1.0","@101-ways/core-mongo":"^0.1.0"},"scripts":{"build":"make","test":"make test"},"_id":"@101-ways/core-mongo-express@0.1.0","_integrity":"sha512-zbl+cucb2y5QkYY+ps8N1JqBFHmeWzXYroQUtQXGlM2Kp8AkYTRde0cBHMDIb4FJZvYbn12K8Exhxr1yzAVzCQ==","_resolved":"/tmp/797b4c756e3d8e79613e14ab2c3e91c6/101-ways-core-mongo-express-0.1.0.tgz","_from":"file:101-ways-core-mongo-express-0.1.0.tgz","_nodeVersion":"18.20.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-zbl+cucb2y5QkYY+ps8N1JqBFHmeWzXYroQUtQXGlM2Kp8AkYTRde0cBHMDIb4FJZvYbn12K8Exhxr1yzAVzCQ==","shasum":"fd8e4cd8154acf9fafeb15535c8b49b4ff147fc5","tarball":"https://registry.npmjs.org/@101-ways/core-mongo-express/-/core-mongo-express-0.1.0.tgz","fileCount":14,"unpackedSize":5128,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH2LDy4C542ZrSRtuveUwy2nMK5LbLCdB40Biy3WKo2+AiEAjjDx9cSiblalnBTEUyOln7wxLL26xF6xJ7PWhXElqJA="}]},"_npmUser":{"name":"borisovg","email":"git@gir.me.uk"},"directories":{},"maintainers":[{"name":"borisovg","email":"git@gir.me.uk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/core-mongo-express_0.1.0_1714487271596_0.8563186905980884"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-30T14:27:51.455Z","0.1.0":"2024-04-30T14:27:51.762Z","modified":"2024-04-30T14:27:52.125Z"},"maintainers":[{"name":"borisovg","email":"git@gir.me.uk"}],"description":"Accelerator Mongo and Express package.","readme":"# @101-ways/core-mongo-express\n\nExpress + MongoDB accelerator package. It uses the Service Registry pattern to create a single object with APIs.\n\n## Usage\n\n```ts\nimport { load } from '@101-ways/core-mongo-express';\n\nload([`${__dirname}/modules`]).then((sr) => {\n  const collection = sr.mongo.db().collection('test');\n\n  sr.express.app.get('/hello', async (req, res) => {\n    const results = await collection.find({}).toArray();\n    res.json({ results });\n  });\n});\n```\n\n## Service Registry API\n\nCombination of [@101-ways/core-express](../core-express/README.md) and [@101-ways/core-mongo](../core-mongo/README.md).\n\n## Environment Variables\n\nCombination of [@101-ways/core-express](../core-express/README.md) and [@101-ways/core-mongo](../core-mongo/README.md).\n","readmeFilename":"README.md"}