{"_id":"@danieljanocha/local-mongo-db","_rev":"11-8896d188964043ee29d96340024452c2","name":"@danieljanocha/local-mongo-db","dist-tags":{"latest":"0.2.8"},"versions":{"0.1.0":{"name":"@danieljanocha/local-mongo-db","version":"0.1.0","keywords":["mongodb","cli","local-database","podman","mongodump","mongorestore","snapshot","atlas"],"author":{"name":"Daniel Janocha"},"license":"MIT","_id":"@danieljanocha/local-mongo-db@0.1.0","maintainers":[{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"}],"homepage":"https://github.com/DJanocha/local-mongo-db#readme","bugs":{"url":"https://github.com/DJanocha/local-mongo-db/issues"},"dist":{"shasum":"fb9a5634ab84bdcd83029c76b37db5e0ee3deb71","tarball":"https://registry.npmjs.org/@danieljanocha/local-mongo-db/-/local-mongo-db-0.1.0.tgz","fileCount":6,"integrity":"sha512-5pDlsaMIrq2mr090JmapAINnXXhlQb//oBMF2L2ZMUJDOuKXvgohd3Pt4r6wVYYpy1p8dR7HcsGBAbomkYi/5Q==","signatures":[{"sig":"MEYCIQCnQcl7ssijOlgULTBpZL0Ap173ucT1pY2nJyGYa5hnyAIhAPKtcbjw12FsK6uT1o50DYm7nxTzZtwjV3yTmBaR8EqD","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":118076},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"9b79a75938e7c62af99157f2c71212eacf59acc4","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","smoke":"tsx examples/smoke.ts","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"},"repository":{"url":"git+https://github.com/DJanocha/local-mongo-db.git","type":"git"},"_npmVersion":"11.11.0","description":"Reusable CLI for managing a local MongoDB container (podman) with snapshots, pull/push to a hosted Atlas, and configurable env-var injection.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"zod":"^3.23.8","lodash":"^4.17.21","mongodb":"^6.9.0","date-fns":"^3.6.0","inquirer":"^12.4.2","commander":"^12.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.3.0","vitest":"^4.1.6","typescript":"^5.5.4","@types/node":"^20.14.0","@types/lodash":"^4.17.7","@types/inquirer":"^9.0.7","mongodb-memory-server":"^11.1.0"},"_npmOperationalInternal":{"tmp":"tmp/local-mongo-db_0.1.0_1778658796903_0.13258784948458535","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@danieljanocha/local-mongo-db","version":"0.1.1","keywords":["mongodb","cli","local-database","podman","mongodump","mongorestore","snapshot","atlas"],"author":{"name":"Daniel Janocha"},"license":"MIT","_id":"@danieljanocha/local-mongo-db@0.1.1","maintainers":[{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"}],"homepage":"https://github.com/DJanocha/local-mongo-db#readme","bugs":{"url":"https://github.com/DJanocha/local-mongo-db/issues"},"bin":{"local-mongo-db":"dist/bin.js"},"dist":{"shasum":"bbd4155c33cd986d82892b1fa3f50ecbd3ef4107","tarball":"https://registry.npmjs.org/@danieljanocha/local-mongo-db/-/local-mongo-db-0.1.1.tgz","fileCount":8,"integrity":"sha512-Y2amddxI3deVdeIsE9dtGDKpTqD3jjZ17mhiIZx/0NLA9h7KMV4CDKm0wVMVh7hbvEyf1bwVrEh55UclCUo76w==","signatures":[{"sig":"MEUCIQCgensez2aWqDO1cSXK5Pf86PLtbF13p6AdM7cFMM6qCAIgQo0hm9TQWfRrOJp0Okb54sXylOzOiFmzZR6PYUNh9Zg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":255692},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"870143a613aa54560c415c5fb1adf737614804b7","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","smoke":"tsx src/bin.ts --config examples/smoke.ts","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"},"repository":{"url":"git+https://github.com/DJanocha/local-mongo-db.git","type":"git"},"_npmVersion":"11.11.0","description":"Reusable CLI for managing a local MongoDB container (podman) with snapshots, pull/push to a hosted Atlas, and configurable env-var injection.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"zod":"^3.23.8","jiti":"^2.7.0","lodash":"^4.17.21","mongodb":"^6.9.0","date-fns":"^3.6.0","inquirer":"^12.4.2","commander":"^12.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.3.0","vitest":"^4.1.6","typescript":"^5.5.4","@types/node":"^20.14.0","@types/lodash":"^4.17.7","@types/inquirer":"^9.0.7","mongodb-memory-server":"^11.1.0"},"_npmOperationalInternal":{"tmp":"tmp/local-mongo-db_0.1.1_1778673647969_0.7610178767634321","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@danieljanocha/local-mongo-db","version":"0.1.2","keywords":["mongodb","cli","local-database","podman","mongodump","mongorestore","snapshot","atlas"],"author":{"name":"Daniel Janocha"},"license":"MIT","_id":"@danieljanocha/local-mongo-db@0.1.2","maintainers":[{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"}],"homepage":"https://github.com/DJanocha/local-mongo-db#readme","bugs":{"url":"https://github.com/DJanocha/local-mongo-db/issues"},"bin":{"local-mongo-db":"dist/bin.js"},"dist":{"shasum":"6191e563de0a4966d9e5ac61dcfe9f5a98dc3ec4","tarball":"https://registry.npmjs.org/@danieljanocha/local-mongo-db/-/local-mongo-db-0.1.2.tgz","fileCount":8,"integrity":"sha512-TD2AEoVTDioEyIlLAjIKuWujC8GyqrSoah2unpJBZWLDy0LEmAifjBK4aiaD+1wCvoAZyFoDDPhfsAdfX1CJ0A==","signatures":[{"sig":"MEUCIEWMDf79i0YJ3ksAYsJm3/6lhyjleTmnUpKFVGL9HnBcAiEAy7ka3UDMtIpRHjMiS6HUbTANn7BU+x8lZRFVhYcozZQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":258063},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"870143a613aa54560c415c5fb1adf737614804b7","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","smoke":"tsx src/bin.ts --config examples/smoke.ts","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"},"repository":{"url":"git+https://github.com/DJanocha/local-mongo-db.git","type":"git"},"_npmVersion":"11.11.0","description":"Reusable CLI for managing a local MongoDB container (podman) with snapshots, pull/push to a hosted Atlas, and configurable env-var injection.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"zod":"^3.23.8","jiti":"^2.7.0","lodash":"^4.17.21","mongodb":"^6.9.0","date-fns":"^3.6.0","inquirer":"^12.4.2","commander":"^12.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.3.0","vitest":"^4.1.6","typescript":"^5.5.4","@types/node":"^20.14.0","@types/lodash":"^4.17.7","@types/inquirer":"^9.0.7","mongodb-memory-server":"^11.1.0"},"_npmOperationalInternal":{"tmp":"tmp/local-mongo-db_0.1.2_1778762313814_0.357746711689364","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@danieljanocha/local-mongo-db","version":"0.2.0","keywords":["mongodb","cli","local-database","podman","mongodump","mongorestore","snapshot","atlas"],"author":{"name":"Daniel Janocha"},"license":"MIT","_id":"@danieljanocha/local-mongo-db@0.2.0","maintainers":[{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"}],"homepage":"https://github.com/DJanocha/local-mongo-db#readme","bugs":{"url":"https://github.com/DJanocha/local-mongo-db/issues"},"bin":{"local-mongo-db":"dist/bin.js"},"dist":{"shasum":"e159c76a5e253f2147f6dcfba17ce8001c3ca56c","tarball":"https://registry.npmjs.org/@danieljanocha/local-mongo-db/-/local-mongo-db-0.2.0.tgz","fileCount":8,"integrity":"sha512-0aVr88XtJ9dObtWIJ3gR5W2TDhfsN4GsHCH7YYG1WTj1vX/kPUVBnVIudVDCUts2YkWcZZymA8nTddHDXp274w==","signatures":[{"sig":"MEQCIFRTyrIrUamTcJK/Dnv3KsLQw/vw5XelJZmrUkvvjYXGAiA4DLAqUrxdPVSRjXBNUTDig0S5R7qMv+UvT/TqawzGZg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":258561},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"d898993c72954a3825f8aa3ba2c138a17609a8f1","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","smoke":"tsx src/bin.ts --config examples/smoke.ts","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"},"repository":{"url":"git+https://github.com/DJanocha/local-mongo-db.git","type":"git"},"_npmVersion":"11.11.0","description":"Reusable CLI for managing a local MongoDB container (podman) with snapshots, pull/push to a hosted Atlas, and configurable env-var injection.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"zod":"^3.23.8","jiti":"^2.7.0","lodash":"^4.17.21","mongodb":"^6.9.0","date-fns":"^3.6.0","inquirer":"^12.4.2","commander":"^12.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","tsup":"^8.3.0","vitest":"^4.1.6","typescript":"^5.5.4","@types/node":"^20.14.0","@types/lodash":"^4.17.7","@types/inquirer":"^9.0.7","mongodb-memory-server":"^11.1.0"},"_npmOperationalInternal":{"tmp":"tmp/local-mongo-db_0.2.0_1778763280086_0.22254501198781007","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@danieljanocha/local-mongo-db","version":"0.2.1","keywords":["mongodb","cli","local-database","podman","mongodump","mongorestore","snapshot","atlas"],"author":{"name":"Daniel Janocha"},"license":"MIT","_id":"@danieljanocha/local-mongo-db@0.2.1","maintainers":[{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"}],"homepage":"https://github.com/DJanocha/local-mongo-db#readme","bugs":{"url":"https://github.com/DJanocha/local-mongo-db/issues"},"bin":{"local-mongo-db":"dist/bin.js"},"dist":{"shasum":"086d81a42c65af9aeb05f2dafdead11cd77f004c","tarball":"https://registry.npmjs.org/@danieljanocha/local-mongo-db/-/local-mongo-db-0.2.1.tgz","fileCount":8,"integrity":"sha512-XH13ya7GZR89ORA0pjUBCWJlGYVbSZ5tmSlyq7X+8t2ky5Jvh0U2hWTPeOlsGe9iKN7qw1xUy+Wc4RDqcccGuQ==","signatures":[{"sig":"MEUCIQCW49gV68MfN3j6VhnjKTVreae2LhP4Gjhfj6YsXkNYigIgBrMQeKe0dfd4tP7FapGu0CLbtFG+PWcy92DjCUCnBy4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":258686},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"d898993c72954a3825f8aa3ba2c138a17609a8f1","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","smoke":"tsx src/bin.ts --config examples/smoke.ts","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"},"repository":{"url":"git+https://github.com/DJanocha/local-mongo-db.git","type":"git"},"_npmVersion":"11.11.0","description":"Reusable CLI for managing a local MongoDB container (podman) with snapshots, pull/push to a hosted Atlas, and configurable env-var injection.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"jiti":"^2.7.0","lodash":"^4.17.21","mongodb":"^6.9.0","date-fns":"^3.6.0","inquirer":"^12.4.2","commander":"^12.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","zod":"^4.4.3","tsup":"^8.3.0","vitest":"^4.1.6","typescript":"^5.5.4","@types/node":"^20.14.0","@types/lodash":"^4.17.7","@types/inquirer":"^9.0.7","mongodb-memory-server":"^11.1.0"},"peerDependencies":{"zod":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/local-mongo-db_0.2.1_1778765010154_0.12327265342718596","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@danieljanocha/local-mongo-db","version":"0.2.2","keywords":["mongodb","cli","local-database","podman","mongodump","mongorestore","snapshot","atlas"],"author":{"name":"Daniel Janocha"},"license":"MIT","_id":"@danieljanocha/local-mongo-db@0.2.2","maintainers":[{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"}],"homepage":"https://github.com/DJanocha/local-mongo-db#readme","bugs":{"url":"https://github.com/DJanocha/local-mongo-db/issues"},"bin":{"local-mongo-db":"dist/bin.js"},"dist":{"shasum":"9300936970dfccf122ec71a52d29de85bcbd4ebc","tarball":"https://registry.npmjs.org/@danieljanocha/local-mongo-db/-/local-mongo-db-0.2.2.tgz","fileCount":8,"integrity":"sha512-q8SOC1tuoYojOcCxXMkmxXMSghQOY7dq13JvfHOxmQr+7d7Z0yUomweryAa42m0IscaZqPG0Yv2VYZYbAN7mEg==","signatures":[{"sig":"MEUCIQDSMYdHPSi5/qUYq77diuUT+hqhqeAmecmTCj9MS6xmvgIgFt2R426XN9SYgoORfm3PGRfcy1au+sf+HwiRZ/Mk+/U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":258686},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"0a0f09a9ceaf0c20c6bf97b314e500ff4ee271ee","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","smoke":"tsx src/bin.ts --config examples/smoke.ts","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"},"repository":{"url":"git+https://github.com/DJanocha/local-mongo-db.git","type":"git"},"_npmVersion":"11.11.0","description":"Reusable CLI for managing a local MongoDB container (podman) with snapshots, pull/push to a hosted Atlas, and configurable env-var injection.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"jiti":"^2.7.0","lodash":"^4.17.21","mongodb":"^6.9.0","date-fns":"^3.6.0","inquirer":"^12.4.2","commander":"^12.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","zod":"^4.4.3","tsup":"^8.3.0","vitest":"^4.1.6","typescript":"^5.5.4","@types/node":"^20.14.0","@types/lodash":"^4.17.7","@types/inquirer":"^9.0.7","mongodb-memory-server":"^11.1.0"},"peerDependencies":{"zod":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/local-mongo-db_0.2.2_1778765055527_0.33672118606525725","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"name":"@danieljanocha/local-mongo-db","version":"0.2.4","keywords":["mongodb","cli","local-database","podman","mongodump","mongorestore","snapshot","atlas"],"author":{"name":"Daniel Janocha"},"license":"MIT","_id":"@danieljanocha/local-mongo-db@0.2.4","maintainers":[{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"}],"homepage":"https://github.com/DJanocha/local-mongo-db#readme","bugs":{"url":"https://github.com/DJanocha/local-mongo-db/issues"},"bin":{"local-mongo-db":"dist/bin.js"},"dist":{"shasum":"d44b9d63327cd9664e78b8fb34dc18c04e7da5d3","tarball":"https://registry.npmjs.org/@danieljanocha/local-mongo-db/-/local-mongo-db-0.2.4.tgz","fileCount":11,"integrity":"sha512-yWX/vz9FwkDH+bvdPQ7PRFkaHHhqgoXMycuXP7ZclXnLLzjd/nUcmEYOmlDoW4bMv28ypyjhncOMlpUpAmkl5Q==","signatures":[{"sig":"MEUCIQCFYn45anWzrIDhUtVH+JfS8NkCb+sS3vkZ0ik2ypILzgIgUZDhW+5nOqKVu56ry7XVX9Zwli/HZ9NH20+TF60vKl4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":286333},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./env":{"types":"./dist/env.d.ts","import":"./dist/env.js"}},"gitHead":"661b0b51b95e27121585ee567251b572addcf20c","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","smoke":"tsx src/bin.ts --config examples/smoke.ts","preview":"tsx src/preview.ts","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"},"repository":{"url":"git+https://github.com/DJanocha/local-mongo-db.git","type":"git"},"_npmVersion":"11.11.0","description":"Reusable CLI for managing a local MongoDB container (podman) with snapshots, pull/push to a hosted Atlas, and configurable env-var injection.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"jiti":"^2.7.0","lodash":"^4.17.21","mongodb":"^6.9.0","date-fns":"^3.6.0","inquirer":"^12.4.2","commander":"^12.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","zod":"^4.4.3","tsup":"^8.3.0","vitest":"^4.1.6","typescript":"^5.5.4","@types/node":"^20.14.0","@types/lodash":"^4.17.7","@types/inquirer":"^9.0.7","mongodb-memory-server":"^11.1.0"},"peerDependencies":{"zod":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/local-mongo-db_0.2.4_1778768148731_0.718399906789351","host":"s3://npm-registry-packages-npm-production"}},"0.2.5":{"name":"@danieljanocha/local-mongo-db","version":"0.2.5","keywords":["mongodb","cli","local-database","podman","mongodump","mongorestore","snapshot","atlas"],"author":{"name":"Daniel Janocha"},"license":"MIT","_id":"@danieljanocha/local-mongo-db@0.2.5","maintainers":[{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"}],"homepage":"https://github.com/DJanocha/local-mongo-db#readme","bugs":{"url":"https://github.com/DJanocha/local-mongo-db/issues"},"bin":{"local-mongo-db":"dist/bin.js"},"dist":{"shasum":"b8ad413f1ea8a5220db8b6b54345f36a05950d8b","tarball":"https://registry.npmjs.org/@danieljanocha/local-mongo-db/-/local-mongo-db-0.2.5.tgz","fileCount":11,"integrity":"sha512-fi2wqZfBjZm7AZVEVDdkNWnhd0/Z7sqVLYPabYk2F459DuafaRPTSGfJTXNYQP0hoZQwny+P5ycgjoww5t/e5Q==","signatures":[{"sig":"MEQCIATNa+SwqTs0AB77bE0M5JLxUtK5XNhH9tAP+tjeaNz/AiAPUUDpvqWvf8Yfzu6HJI1tCoPHggDrwcIjqm9j3uQLxw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":287105},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./env":{"types":"./dist/env.d.ts","import":"./dist/env.js"}},"gitHead":"0bed90ceacc953417eb8cc1972875d6aaddb4d58","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","smoke":"tsx src/bin.ts --config examples/smoke.ts","preview":"tsx src/preview.ts","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"},"repository":{"url":"git+https://github.com/DJanocha/local-mongo-db.git","type":"git"},"_npmVersion":"11.11.0","description":"Reusable CLI for managing a local MongoDB container (podman) with snapshots, pull/push to a hosted Atlas, and configurable env-var injection.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"jiti":"^2.7.0","lodash":"^4.17.21","mongodb":"^6.9.0","date-fns":"^3.6.0","inquirer":"^12.4.2","commander":"^12.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","zod":"^4.4.3","tsup":"^8.3.0","vitest":"^4.1.6","typescript":"^5.5.4","@types/node":"^20.14.0","@types/lodash":"^4.17.7","@types/inquirer":"^9.0.7","mongodb-memory-server":"^11.1.0"},"peerDependencies":{"zod":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/local-mongo-db_0.2.5_1778769824354_0.7228417661837634","host":"s3://npm-registry-packages-npm-production"}},"0.2.6":{"name":"@danieljanocha/local-mongo-db","version":"0.2.6","keywords":["mongodb","cli","local-database","podman","mongodump","mongorestore","snapshot","atlas"],"author":{"name":"Daniel Janocha"},"license":"MIT","_id":"@danieljanocha/local-mongo-db@0.2.6","maintainers":[{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"}],"homepage":"https://github.com/DJanocha/local-mongo-db#readme","bugs":{"url":"https://github.com/DJanocha/local-mongo-db/issues"},"bin":{"local-mongo-db":"dist/bin.js"},"dist":{"shasum":"f229d2a531ade19359f6a5844dae740bfa07203b","tarball":"https://registry.npmjs.org/@danieljanocha/local-mongo-db/-/local-mongo-db-0.2.6.tgz","fileCount":14,"integrity":"sha512-Xfxch5hHvUJmKMBaa02/+iZTfbtzhcgDIDcyynnbHb0N87hIy1M96VfIy0ERMi9o+4kdWOBoHzWAxoeeg99hhg==","signatures":[{"sig":"MEYCIQCfhH+5DBnBe3oA4JA4snaaq5w298LsZAvf5jKBl+aZGgIhAJByAtWC1eEcgLsChaH1bGjnPO8Ml4pwr19hsxGyHi0l","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":298070},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./env":{"types":"./dist/env.d.ts","import":"./dist/env.js"},"./env/schema":{"types":"./dist/env/schema.d.ts","import":"./dist/env/schema.js"}},"gitHead":"0bed90ceacc953417eb8cc1972875d6aaddb4d58","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","smoke":"tsx src/bin.ts --config examples/smoke.ts","preview":"tsx src/preview.ts","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"},"repository":{"url":"git+https://github.com/DJanocha/local-mongo-db.git","type":"git"},"_npmVersion":"11.11.0","description":"Reusable CLI for managing a local MongoDB container (podman) with snapshots, pull/push to a hosted Atlas, and configurable env-var injection.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"jiti":"^2.7.0","lodash":"^4.17.21","mongodb":"^6.9.0","date-fns":"^3.6.0","inquirer":"^12.4.2","commander":"^12.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","zod":"^4.4.3","tsup":"^8.3.0","vitest":"^4.1.6","typescript":"^5.5.4","@types/node":"^20.14.0","@types/lodash":"^4.17.7","@types/inquirer":"^9.0.7","mongodb-memory-server":"^11.1.0"},"peerDependencies":{"zod":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/local-mongo-db_0.2.6_1779971061036_0.17421860165695446","host":"s3://npm-registry-packages-npm-production"}},"0.2.7":{"name":"@danieljanocha/local-mongo-db","version":"0.2.7","keywords":["mongodb","cli","local-database","podman","mongodump","mongorestore","snapshot","atlas"],"author":{"name":"Daniel Janocha"},"license":"MIT","_id":"@danieljanocha/local-mongo-db@0.2.7","maintainers":[{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"}],"homepage":"https://github.com/DJanocha/local-mongo-db#readme","bugs":{"url":"https://github.com/DJanocha/local-mongo-db/issues"},"bin":{"local-mongo-db":"dist/bin.js"},"dist":{"shasum":"9b5a10d02c95474ecb29100b27daa28ad71b1787","tarball":"https://registry.npmjs.org/@danieljanocha/local-mongo-db/-/local-mongo-db-0.2.7.tgz","fileCount":14,"integrity":"sha512-fP1qrfK8fV+HS2xJ8Sy1YqsFMviaCDkxj1xa52SmmrwzcDsZlNBiZ4aMAkdQ24ekQj1V3l5g9XP+dGZ7SVhEtA==","signatures":[{"sig":"MEUCICOAPGln6epj1wE6LcSvZh2Qus1IgTfWgKCXHAnIwb1RAiEAz5mTu2jbT8Q/gKxVKfvxy6znich5j2EjWzpHaDOGsfA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCICJCzjX8kDCjto/x8hhSoRzEB0yg5BnFNcq6/HY/sjLgAiEA7RKvScNNDaPW4SjNoBtkvIjTJS0D+MFRaWSHhol0JT0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":298070},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./env":{"types":"./dist/env.d.ts","import":"./dist/env.js"},"./env/schema":{"types":"./dist/env/schema.d.ts","import":"./dist/env/schema.js"}},"gitHead":"7bf55aa6496e98b4e4f69c09518f360492345585","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","smoke":"tsx src/bin.ts --config examples/smoke.ts","preview":"tsx src/preview.ts","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"},"repository":{"url":"git+https://github.com/DJanocha/local-mongo-db.git","type":"git"},"_npmVersion":"11.11.0","description":"Reusable CLI for managing a local MongoDB container (podman) with snapshots, pull/push to a hosted Atlas, and configurable env-var injection.","directories":{},"_nodeVersion":"24.14.1","dependencies":{"jiti":"^2.7.0","lodash":"^4.17.21","mongodb":"^6.9.0","date-fns":"^3.6.0","inquirer":"^12.4.2","commander":"^12.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","zod":"^4.4.3","tsup":"^8.3.0","vitest":"^4.1.6","typescript":"^5.5.4","@types/node":"^20.14.0","@types/lodash":"^4.17.7","@types/inquirer":"^9.0.7","mongodb-memory-server":"^11.1.0"},"peerDependencies":{"zod":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/local-mongo-db_0.2.7_1790091303226_0.3386516561735571","host":"s3://npm-registry-packages-npm-production"}},"0.2.8":{"_id":"@danieljanocha/local-mongo-db@0.2.8","bin":{"local-mongo-db":"dist/bin.js"},"bugs":{"url":"https://github.com/DJanocha/local-mongo-db/issues"},"dist":{"shasum":"87cd55b0179fb2ce1fa9a012beecfff009c3dcdf","tarball":"https://registry.npmjs.org/@danieljanocha/local-mongo-db/-/local-mongo-db-0.2.8.tgz","fileCount":14,"integrity":"sha512-P8Ezt3zxT0ZbIO7/FSrIAoiz4tQTJ+Y986Bn2R3+LsQf5qBKeoFYg82V4dvaIk+88alxcegO4S2mTjfN0D0irQ==","signatures":[{"sig":"MEUCIQDl1xHuDemX/FTmYYVeJL9cN9InkJM1akSMXSUUzGIkLAIgKN4ujqU1OvkKIXivPCIFPw6Pl6mmIYUzBRmPTnyVFtg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD68iw7Yi4zpHR6Cx3xlB/JBb7+Ju6ZHQ7e9SawkFxLXgIgPLpa98iqaA4qj5HGEoLssW6XdP5fdc8aUl3DSmYM6wA="}],"unpackedSize":301842},"main":"./dist/index.js","name":"@danieljanocha/local-mongo-db","type":"module","_from":"file:danieljanocha-local-mongo-db-0.2.8.tgz","types":"./dist/index.d.ts","author":{"name":"Daniel Janocha"},"engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./env":{"types":"./dist/env.d.ts","import":"./dist/env.js"},"./env/schema":{"types":"./dist/env/schema.d.ts","import":"./dist/env/schema.js"}},"license":"MIT","scripts":{"dev":"tsup --watch","test":"vitest run","build":"tsup","smoke":"tsx src/bin.ts --config examples/smoke.ts","preview":"tsx src/preview.ts","typecheck":"tsc --noEmit","test:watch":"vitest"},"version":"0.2.8","_npmUser":{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"},"homepage":"https://github.com/DJanocha/local-mongo-db#readme","keywords":["mongodb","cli","local-database","podman","mongodump","mongorestore","snapshot","atlas"],"_resolved":"/private/var/folders/r8/5f8sbd351fs4x61ld4jldv700000gn/T/ab4bee68b2ec56c65d0c305cd6fcaa9f/danieljanocha-local-mongo-db-0.2.8.tgz","_integrity":"sha512-P8Ezt3zxT0ZbIO7/FSrIAoiz4tQTJ+Y986Bn2R3+LsQf5qBKeoFYg82V4dvaIk+88alxcegO4S2mTjfN0D0irQ==","repository":{"url":"git+https://github.com/DJanocha/local-mongo-db.git","type":"git"},"_npmVersion":"11.11.0","description":"Reusable CLI for managing a local MongoDB container (podman) with snapshots, pull/push to a hosted Atlas, and configurable env-var injection.","directories":{},"maintainers":[{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"}],"_nodeVersion":"24.14.1","dependencies":{"jiti":"^2.7.0","lodash":"^4.17.21","mongodb":"^6.9.0","date-fns":"^3.6.0","inquirer":"^12.4.2","commander":"^12.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","zod":"^4.4.3","tsup":"^8.3.0","vitest":"^4.1.6","typescript":"^5.5.4","@types/node":"^20.14.0","@types/lodash":"^4.17.7","@types/inquirer":"^9.0.7","mongodb-memory-server":"^11.1.0"},"peerDependencies":{"zod":"^4.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/local-mongo-db_0.2.8_1790091850769_0.729607485027608"}}},"time":{"created":"2026-05-13T07:53:16.829Z","modified":"2026-09-22T15:44:11.032Z","0.1.0":"2026-05-13T07:53:17.082Z","0.1.1":"2026-05-13T12:00:48.112Z","0.1.2":"2026-05-14T12:38:33.983Z","0.2.0":"2026-05-14T12:54:40.271Z","0.2.1":"2026-05-14T13:23:30.340Z","0.2.2":"2026-05-14T13:24:15.687Z","0.2.4":"2026-05-14T14:15:48.907Z","0.2.5":"2026-05-14T14:43:44.510Z","0.2.6":"2026-05-28T12:24:21.183Z","0.2.7":"2026-09-22T15:35:03.312Z","0.2.8":"2026-09-22T15:44:10.891Z"},"bugs":{"url":"https://github.com/DJanocha/local-mongo-db/issues"},"author":{"name":"Daniel Janocha"},"license":"MIT","homepage":"https://github.com/DJanocha/local-mongo-db#readme","keywords":["mongodb","cli","local-database","podman","mongodump","mongorestore","snapshot","atlas"],"repository":{"url":"git+https://github.com/DJanocha/local-mongo-db.git","type":"git"},"description":"Reusable CLI for managing a local MongoDB container (podman) with snapshots, pull/push to a hosted Atlas, and configurable env-var injection.","maintainers":[{"name":"danieljanocha","email":"daniel.jan.janocha@gmail.com"}],"readme":"# @danieljanocha/local-mongo-db\n\nA reusable CLI for managing a local MongoDB container (via podman), pulling/pushing data to a hosted Atlas, taking BSON snapshots, and injecting the right env vars into your local environment file while it runs.\n\nYou write one `local-mongo-db.config.ts` and add one line to `package.json`. Done. No entry script, no `__dirname` plumbing.\n\n## Install\n\n```sh\npnpm add -D @danieljanocha/local-mongo-db\n```\n\nYou'll also need `podman`, `mongodump`, `mongorestore`, and `mongosh` on your PATH.\n\n## Use\n\n### 1. Add the script\n\n```jsonc\n// package.json\n{\n  \"scripts\": {\n    \"db:local\": \"local-mongo-db\"\n    // or, with explicit path: \"local-mongo-db --config ./local-db/config.ts\"\n  }\n}\n```\n\nThe CLI auto-discovers `local-mongo-db.config.{ts,js,mjs}` in the current working directory.\n\n### 2. Declare the env keys\n\nPut the `buildLocalMongoEnv` call in its own file and import it from `/env/schema` — that subpath is pure Zod, with zero `node:*` imports, so any file a client/edge bundler can reach is safe to import it from:\n\n```ts\n// local-mongo-env.ts — bundler-safe, can be imported from anywhere\nimport { buildLocalMongoEnv } from \"@danieljanocha/local-mongo-db/env/schema\";\n\nexport const localMongoEnv = buildLocalMongoEnv({\n  dbUrl: \"DATABASE_URL\",\n  // or mirror into legacy keys: dbUrl: [\"DATABASE_URL\", \"MONGO_URI\"],\n  dbSource: \"NEXT_PUBLIC_DB_SOURCE\", // optional label\n});\n```\n\n### 3. Create the config\n\n```ts\n// local-mongo-db.config.ts — Node-only, never reached by client bundles\nimport { defineConfig } from \"@danieljanocha/local-mongo-db/env\";\n\nimport { localMongoEnv } from \"./local-mongo-env\";\n\nexport default defineConfig({\n  containerName: \"mongodb\",\n  port: 27011,\n  version: \"6.0.13-ubi8\",\n  dbSnapshotsPath: \"./snapshots\", // resolved relative to THIS file\n  envLocalPath: \"../.env.local\",\n  envPath: \"../.env\",\n  envKeyMapper: localMongoEnv.envKeyMapper,\n  enablePushToHosted: true,\n  enableHostedDbDuplication: true,\n});\n```\n\nAll path fields (`dbSnapshotsPath`, `envLocalPath`, `envPath`) are resolved **relative to the config file's directory** — no `__dirname` / `WORKSPACE_ROOT` math needed. Absolute paths are kept as-is.\n\nRun `pnpm db:local` to launch the interactive wizard. Pass flags (`--list`, `--load-last`, etc.) to skip it.\n\n### Entry points\n\n| Import | Contains | Use it for |\n|---|---|---|\n| `@danieljanocha/local-mongo-db` | Everything, incl. the CLI and the `mongodb` driver | Node-only scripts and the CLI itself. |\n| `@danieljanocha/local-mongo-db/env` | `defineConfig`, `resolveConfig` + types. Uses `node:path` internally — Node-only. | Your `local-mongo-db.config.ts`. |\n| `@danieljanocha/local-mongo-db/env/schema` | `buildLocalMongoEnv` + types — pure Zod, no `node:*` imports. | Anywhere reachable by a client/edge bundler (e.g. your t3-oss `env.ts`, the file that holds `localMongoEnv`). |\n\nWhy keep `localMongoEnv` in its own file: frameworks like Next.js bundle whatever your `env.ts` transitively imports. If `localMongoEnv` lived in `local-mongo-db.config.ts`, then importing it into `env.ts` would drag `defineConfig` (and its `node:path` import) into the client bundle and break the build with `Module not found: Can't resolve 'path'`. A dedicated `local-mongo-env.ts` keeps the schema side bundler-safe and the config side Node-only.\n\n> Earlier versions of this README imported `buildLocalMongoEnv` from `/env`. That still works for back-compat, but `/env` also exposes `defineConfig` / `resolveConfig` and therefore pulls `node:path` into the import graph — prefer `/env/schema` for any file a client bundle can reach.\n\n## Type-safe env keys with t3-oss\n\n`buildLocalMongoEnv` returns a Zod object schema alongside the mapper. Import `localMongoEnv` from the dedicated file (above) and spread its `.shape` into your `@t3-oss/env-*` setup — the same env keys validate at startup, and the import graph stays bundler-safe:\n\n```ts\n// env.ts — bundler-safe; reachable from client code\nimport { createEnv } from \"@t3-oss/env-nextjs\";\nimport { z } from \"zod\";\n\nimport { localMongoEnv } from \"./local-mongo-env\";\n\nexport const env = createEnv({\n  server: {\n    ...localMongoEnv.schema.shape, // DATABASE_URL etc.\n    OTHER_SERVER_KEY: z.string(),\n  },\n  client: {\n    NEXT_PUBLIC_OTHER: z.string(),\n  },\n  // ...\n});\n```\n\nSingle source of truth: the env-var names live in `local-mongo-env.ts`; both the runtime injector (via `local-mongo-db.config.ts`) and your env schema (via `env.ts`) derive from the same builder call.\n\n## Configuration reference\n\n| Field | Default | Description |\n|---|---|---|\n| `containerName` | `\"mongodb\"` | Podman container name. |\n| `port` | `27017` | Local TCP port. Overridable at runtime with `--port`. |\n| `version` | `\"6.0.13-ubi8\"` | `mongodb-community-server` image tag. |\n| `dbSnapshotsPath` | — | Directory for `.bson` snapshots and the `dump/` working dir. Config-file-relative. |\n| `envLocalPath` | — | Env file the CLI writes local-mode variables into (e.g. `.env.local`). Config-file-relative. |\n| `envPath` | — | Env file the CLI reads the hosted Atlas URI from (e.g. `.env`). Config-file-relative. |\n| `envKeyMapper` | — | `{ dbUrl: string \\| string[]; dbSource?: string \\| string[] }`. Canonical → env-var-name map. |\n| `extraEnvVariables` | — | Optional `({ port }) => [{ envKey, value }]` for env vars outside the canonical mapper. |\n| `hostedDbUrlEnvKey` | `\"DATABASE_URL\"` | Key read from `envPath` for the hosted Atlas URI. |\n| `enablePushToHosted` | `false` | Reveal the `push` action and `--push` / `--push-current` flags. |\n| `enableHostedDbDuplication` | `false` | Reveal the `duplicate-hosted-db` action. |\n| `namespaceTransform` | — | `{ from, to }` forwarded as `--nsFrom` / `--nsTo` to `mongorestore`. |\n\n## CLI flags\n\n```\n--config <path>    Use a specific config file (overrides auto-discovery)\n--list             List all available snapshots\n--load-last        Load the most recent DB snapshot\n--load <slug>      Load a specific snapshot by slug\n--save-as <name>   Save the current database state with the given name\n--start            Start local MongoDB without the interactive wizard\n--push <slug>      DANGEROUS: push a snapshot to hosted DB (requires confirmation)\n--push-current     DANGEROUS: push current local DB to hosted (requires confirmation)\n-p, --port <n>     MongoDB port (overrides the config default)\n```\n\n`--push` and `--push-current` only appear when `enablePushToHosted: true`.\n\nWith no flags, an interactive wizard appears. `push` and `duplicate-hosted-db` choices appear only when their corresponding `enable*` flag is on.\n\n## What \"env injection\" means\n\nWhile the local DB is running, the CLI **appends** every mapper-derived env key (plus `extraEnvVariables`) to `envLocalPath`. Each `envKeyMapper.dbUrl` entry gets `mongodb://localhost:${port}`; each `envKeyMapper.dbSource` entry gets `\"local\"`. On Ctrl+C / SIGTERM it **strips** those same keys back out. The \"local override\" tricks your app into talking to the local container while leaving your hosted `envPath` untouched.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}