{"_id":"@asafarim/envage","_rev":"11-20910d12b6221206bd4123add936262b","name":"@asafarim/envage","dist-tags":{"latest":"0.5.1"},"versions":{"0.1.0":{"name":"@asafarim/envage","version":"0.1.0","keywords":["age","encryption","env","dotenv","monorepo","secrets","cli"],"author":"Ali Safarim <asafarim@gmail.com>","license":"MIT","_id":"@asafarim/envage@0.1.0","maintainers":[{"name":"asafarim.be","email":"asafarim.it@gmail.com"}],"homepage":"https://AliSafari-IT.github.io/envage","bugs":{"url":"https://github.com/AliSafari-IT/envage/issues"},"bin":{"envage":"./bin/envage.js"},"dist":{"shasum":"dea51d3e6848723fabdb5c4e1731ff528edfeb68","tarball":"https://registry.npmjs.org/@asafarim/envage/-/envage-0.1.0.tgz","fileCount":63,"integrity":"sha512-nJJlnG+muPm+fI+EJBZb9Io9sZZzc7z+cDDa3lnwtaZSGV1WTBpNZa/AoSZauec4aWaJSNOVtFqgojhEbLS6AA==","signatures":[{"sig":"MEUCIHwIKElmH4SuBzENoy4Mo/M9qOHHkLDxs4HsPavwDRZoAiEA6Y3n1yxSXD/AD9NHqCEGUEAbmSbMQdUne5ySCq9z4yw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":84072},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","lint":"tsc --noEmit","test":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs","build":"tsc","typecheck":"tsc --noEmit","test:watch":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --watch","test:coverage":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --coverage"},"_npmUser":{"name":"asafarim.be","email":"asafarim.it@gmail.com"},"repository":{"url":"https://github.com/AliSafari-IT/envage.git","type":"git"},"description":"Secure, age-based encryption/decryption for .env files across multiple environments and monorepo app folders","directories":{},"_nodeVersion":"22.13.1","dependencies":{"chalk":"^5.3.0","commander":"^12.1.0","age-encryption":"^0.3.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.5","typescript":"^5.5.3","@types/jest":"^29.5.12","@types/node":"^20.14.0"},"_npmOperationalInternal":{"tmp":"tmp/envage_0.1.0_1779395967622_0.45742744361646426","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@asafarim/envage","version":"0.2.0","keywords":["age","encryption","env","dotenv","monorepo","secrets","cli"],"author":"Ali Safarim <asafarim@gmail.com>","license":"MIT","_id":"@asafarim/envage@0.2.0","maintainers":[{"name":"asafarim.be","email":"asafarim.it@gmail.com"}],"homepage":"https://AliSafari-IT.github.io/envage","bugs":{"url":"https://github.com/AliSafari-IT/envage/issues"},"bin":{"envage":"./bin/envage.js"},"dist":{"shasum":"0a126b0a4e59aac3a0b83f158792736aed26efd6","tarball":"https://registry.npmjs.org/@asafarim/envage/-/envage-0.2.0.tgz","fileCount":63,"integrity":"sha512-JQSlaQDG6anUohEkCKqMAolu5NdcjrMosJyrxR01JHT4fuSdsQyuvELRcdy0RBbW+rTmVNfJa2Xs5WCXjG6O2Q==","signatures":[{"sig":"MEUCIQDcbbcXIvOA6APF8mfVJJhqkZXmvWVgPCzkcHsIiPs+kgIgAgaPsVGDN7bo3QSe9fC6RCAu5NbKjqiC4wLkzB1Mt/s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":85848},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","lint":"tsc --noEmit","test":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs","build":"tsc","typecheck":"tsc --noEmit","test:watch":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --watch","test:coverage":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --coverage"},"_npmUser":{"name":"asafarim.be","email":"asafarim.it@gmail.com"},"repository":{"url":"https://github.com/AliSafari-IT/envage.git","type":"git"},"description":"Secure, age-based encryption/decryption for .env files across multiple environments and monorepo app folders","directories":{},"_nodeVersion":"22.13.1","dependencies":{"chalk":"^5.3.0","commander":"^12.1.0","age-encryption":"^0.3.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.5","typescript":"^5.5.3","@types/jest":"^29.5.12","@types/node":"^20.14.0"},"_npmOperationalInternal":{"tmp":"tmp/envage_0.2.0_1779398714769_0.2840832767141266","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@asafarim/envage","version":"0.3.0","keywords":["age","encryption","env","dotenv","monorepo","secrets","cli"],"author":"Ali Safarim <asafarim@gmail.com>","license":"MIT","_id":"@asafarim/envage@0.3.0","maintainers":[{"name":"asafarim.be","email":"asafarim.it@gmail.com"}],"homepage":"https://AliSafari-IT.github.io/envage","bugs":{"url":"https://github.com/AliSafari-IT/envage/issues"},"bin":{"envage":"./bin/envage.js"},"dist":{"shasum":"df2a708cc3942134174d04bec3ed85eec75141e6","tarball":"https://registry.npmjs.org/@asafarim/envage/-/envage-0.3.0.tgz","fileCount":63,"integrity":"sha512-gJ95wsJnjORYHuwAzSAxfLW6pWlBuEeBf0fnO7mZrJkHRMhr91hb0FTOtRCf/jrASUAgdNxn9sIUB9k2I1gzsA==","signatures":[{"sig":"MEMCIC8fmi4pwSB8k8nCcd0tz1bxX2t06qltTbBbqlSeJYLmAh8F0VHfSi9w4lJeXe6mHp6RSS5SkGWNn7eAvyPpWpQE","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":86272},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","demo":"pnpm --filter envage-demo run dev","lint":"tsc --noEmit","test":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs","build":"tsc","typecheck":"tsc --noEmit","test:watch":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --watch","test:coverage":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --coverage"},"_npmUser":{"name":"asafarim.be","email":"asafarim.it@gmail.com"},"repository":{"url":"https://github.com/AliSafari-IT/envage.git","type":"git"},"description":"Secure, age-based encryption/decryption for .env files across multiple environments and monorepo app folders","directories":{},"_nodeVersion":"22.13.1","dependencies":{"chalk":"^5.3.0","commander":"^12.1.0","age-encryption":"^0.3.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.5","typescript":"^5.5.3","@types/jest":"^29.5.12","@types/node":"^20.14.0"},"_npmOperationalInternal":{"tmp":"tmp/envage_0.3.0_1779400500993_0.7822655984667837","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@asafarim/envage","version":"0.3.1","keywords":["age","encryption","env","dotenv","monorepo","secrets","cli"],"author":"Ali Safarim <asafarim@gmail.com>","license":"MIT","_id":"@asafarim/envage@0.3.1","maintainers":[{"name":"asafarim.be","email":"asafarim.it@gmail.com"}],"homepage":"https://AliSafari-IT.github.io/envage","bugs":{"url":"https://github.com/AliSafari-IT/envage/issues"},"bin":{"envage":"./bin/envage.js"},"dist":{"shasum":"ed5d2d0918949d1733ee5a4572453012398896a7","tarball":"https://registry.npmjs.org/@asafarim/envage/-/envage-0.3.1.tgz","fileCount":63,"integrity":"sha512-V/0Tvp7mpelPyLVvolQlbTrxQxapfJWjr3Mc8WQ3c6UZEJo/mFe3aTYMenpj9oDoc7iaFt1nGLMcA2eToSrNBQ==","signatures":[{"sig":"MEUCIE/WrSE4SmCjFFR6qZtPRBVB8tbeqya3j3idZzV5qvB0AiEAhsiGKYupyOkS1CGfFMR0G7dRP5kVp5aNCZlQdw+znF0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":88327},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","demo":"pnpm --filter envage-demo run dev","lint":"tsc --noEmit","test":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs","build":"tsc","typecheck":"tsc --noEmit","test:watch":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --watch","test:coverage":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --coverage"},"_npmUser":{"name":"asafarim.be","email":"asafarim.it@gmail.com"},"repository":{"url":"https://github.com/AliSafari-IT/envage.git","type":"git"},"description":"Secure, age-based encryption/decryption for .env files across multiple environments and monorepo app folders","directories":{},"_nodeVersion":"22.13.1","dependencies":{"chalk":"^5.3.0","commander":"^12.1.0","age-encryption":"^0.3.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.5","typescript":"^5.5.3","@types/jest":"^29.5.12","@types/node":"^20.14.0"},"_npmOperationalInternal":{"tmp":"tmp/envage_0.3.1_1779455850302_0.2567842659930446","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@asafarim/envage","version":"0.3.2","keywords":["age","encryption","env","dotenv","monorepo","secrets","cli"],"author":"Ali Safarim <asafarim@gmail.com>","license":"MIT","_id":"@asafarim/envage@0.3.2","maintainers":[{"name":"asafarim.be","email":"asafarim.it@gmail.com"}],"homepage":"https://AliSafari-IT.github.io/envage","bugs":{"url":"https://github.com/AliSafari-IT/envage/issues"},"bin":{"envage":"./bin/envage.js"},"dist":{"shasum":"8ee1d84b50caae5c6a5ff51a3cc2e02415b1e35a","tarball":"https://registry.npmjs.org/@asafarim/envage/-/envage-0.3.2.tgz","fileCount":63,"integrity":"sha512-12i1+ZtDGkjqDBkP79u5lPR4Q1ucS3e3Nq0FWoY5xG/gjrIahOJ2FMX3yWKhc9GVYFx3AKTlpT6cRQoZxLJ8Gw==","signatures":[{"sig":"MEYCIQCZxnsVxzi2T/4kM3tWV4UGDbU0kMw5DGrU3Ag9gghqawIhAJAhnDWg7WJ4Lpal1UVW/jTy2Ca3a1rdChO4sdqEuqVq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":88387},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","demo":"pnpm --filter envage-demo run dev","lint":"tsc --noEmit","test":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs","build":"tsc","typecheck":"tsc --noEmit","test:watch":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --watch","test:coverage":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --coverage"},"_npmUser":{"name":"asafarim.be","email":"asafarim.it@gmail.com"},"repository":{"url":"https://github.com/AliSafari-IT/envage.git","type":"git"},"description":"Secure, age-based encryption/decryption for .env files across multiple environments and monorepo app folders","directories":{},"_nodeVersion":"22.13.1","dependencies":{"chalk":"^5.3.0","commander":"^12.1.0","age-encryption":"^0.3.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.5","typescript":"^5.5.3","@types/jest":"^29.5.12","@types/node":"^20.14.0"},"_npmOperationalInternal":{"tmp":"tmp/envage_0.3.2_1779456337214_0.7604630132885286","host":"s3://npm-registry-packages-npm-production"}},"0.3.3":{"name":"@asafarim/envage","version":"0.3.3","keywords":["age","encryption","env","dotenv","monorepo","secrets","cli"],"author":"Ali Safarim <asafarim@gmail.com>","license":"MIT","_id":"@asafarim/envage@0.3.3","maintainers":[{"name":"asafarim.be","email":"asafarim.it@gmail.com"}],"homepage":"https://AliSafari-IT.github.io/envage","bugs":{"url":"https://github.com/AliSafari-IT/envage/issues"},"bin":{"envage":"./bin/envage.js"},"dist":{"shasum":"d6f151c37b3620a3117ff8fde47a2996abdc5a55","tarball":"https://registry.npmjs.org/@asafarim/envage/-/envage-0.3.3.tgz","fileCount":63,"integrity":"sha512-liAxLffxr3gb7Kj77Rtn5mXobCGVBKe4wcz+3FMki0IA5Azt/K6lRPunAG6KjdyW2BU516IdLgOGXSLov+7U5A==","signatures":[{"sig":"MEUCIFRtcooQLRjG8aGI3THjX78plSYDob6eRC0Uj3309f1bAiEA1GHPl0nhrx6zBdXcv1/AC1EuvYa5yqgW9eL+18KaCgU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":88393},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","demo":"pnpm --filter envage-demo run dev","lint":"tsc --noEmit","test":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs","build":"tsc","typecheck":"tsc --noEmit","test:watch":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --watch","test:coverage":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --coverage"},"_npmUser":{"name":"asafarim.be","email":"asafarim.it@gmail.com"},"repository":{"url":"https://github.com/AliSafari-IT/envage.git","type":"git"},"description":"Secure, age-based encryption/decryption for .env files across multiple environments and monorepo app folders","directories":{},"_nodeVersion":"22.13.1","dependencies":{"chalk":"^5.3.0","commander":"^12.1.0","age-encryption":"^0.3.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.5","typescript":"^5.5.3","@types/jest":"^29.5.12","@types/node":"^20.14.0"},"_npmOperationalInternal":{"tmp":"tmp/envage_0.3.3_1780261791684_0.4332715116102872","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@asafarim/envage","version":"0.4.0","keywords":["age","encryption","env","dotenv","monorepo","secrets","cli"],"author":"Ali Safarim <asafarim@gmail.com>","license":"MIT","_id":"@asafarim/envage@0.4.0","maintainers":[{"name":"asafarim.be","email":"asafarim.it@gmail.com"}],"homepage":"https://AliSafari-IT.github.io/envage","bugs":{"url":"https://github.com/AliSafari-IT/envage/issues"},"bin":{"envage":"./bin/envage.js"},"dist":{"shasum":"fda42dd22bef11b4d062de5b5c49259900c3b95f","tarball":"https://registry.npmjs.org/@asafarim/envage/-/envage-0.4.0.tgz","fileCount":63,"integrity":"sha512-GBn5Qm0LA0ZSuxVHmDfiG1aupXHd3/zpunZ4fL6ltdMD5Dr7IO/JhGTC0fa+lo+P+Qa+A7p7oOUmBXzt7K9tnA==","signatures":[{"sig":"MEUCIQCvkiq51PdevSXMFqIZBv52ryTM8L8M2IeuCxz7Hqk2/AIgUhGFSDHU4hZMZa66Tkc1hyI+a4ahhMKs0fBfGhoHQDU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":96680},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","demo":"pnpm --filter envage-demo run dev","lint":"tsc --noEmit","test":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs","build":"tsc","typecheck":"tsc --noEmit","test:watch":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --watch","test:coverage":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --coverage"},"_npmUser":{"name":"asafarim.be","email":"asafarim.it@gmail.com"},"repository":{"url":"https://github.com/AliSafari-IT/envage.git","type":"git"},"description":"Secure, age-based encryption/decryption for .env files across multiple environments and monorepo app folders","directories":{},"_nodeVersion":"22.13.1","dependencies":{"chalk":"^5.3.0","commander":"^12.1.0","age-encryption":"^0.3.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.5","typescript":"^5.5.3","@types/jest":"^29.5.12","@types/node":"^20.14.0"},"_npmOperationalInternal":{"tmp":"tmp/envage_0.4.0_1783278209701_0.35329486704647173","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@asafarim/envage","version":"0.4.1","keywords":["age","encryption","env","dotenv","monorepo","secrets","cli"],"author":"Ali Safarim <asafarim@gmail.com>","license":"MIT","_id":"@asafarim/envage@0.4.1","maintainers":[{"name":"asafarim.be","email":"asafarim.it@gmail.com"}],"homepage":"https://AliSafari-IT.github.io/envage","bugs":{"url":"https://github.com/AliSafari-IT/envage/issues"},"bin":{"envage":"./bin/envage.js"},"dist":{"shasum":"0b5d86a9aab7e68279d463dcf719b85c09686221","tarball":"https://registry.npmjs.org/@asafarim/envage/-/envage-0.4.1.tgz","fileCount":63,"integrity":"sha512-ywzIApbZbWbtRDe9wBYuy+p2QbcUAJPl7VN3CqHeJFd19U8TVxJLsAitGagaF7AmkAtuGhLJvWQ8s2C3u2v7Gw==","signatures":[{"sig":"MEUCIELzkD0LNn+rojpGRG61/A7+JSkOt1ENYjZzhrg2swaCAiEAyMymJdsTayYQL0paZfkujB9xsw9ZHCp9UBGF8uat5tY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":96889},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","demo":"pnpm --filter envage-demo run dev","lint":"tsc --noEmit","test":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs","build":"tsc","typecheck":"tsc --noEmit","test:watch":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --watch","test:coverage":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --coverage"},"_npmUser":{"name":"asafarim.be","email":"asafarim.it@gmail.com"},"repository":{"url":"https://github.com/AliSafari-IT/envage.git","type":"git"},"description":"Secure, age-based encryption/decryption for .env files across multiple environments and monorepo app folders","directories":{},"_nodeVersion":"22.13.1","dependencies":{"chalk":"^5.3.0","commander":"^12.1.0","age-encryption":"^0.3.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.5","typescript":"^5.5.3","@types/jest":"^29.5.12","@types/node":"^20.14.0"},"_npmOperationalInternal":{"tmp":"tmp/envage_0.4.1_1783279406180_0.2627195642915334","host":"s3://npm-registry-packages-npm-production"}},"0.4.2":{"name":"@asafarim/envage","version":"0.4.2","keywords":["age","encryption","env","dotenv","monorepo","secrets","cli"],"author":"Ali Safarim <asafarim@gmail.com>","license":"MIT","_id":"@asafarim/envage@0.4.2","maintainers":[{"name":"asafarim.be","email":"asafarim.it@gmail.com"}],"homepage":"https://AliSafari-IT.github.io/envage","bugs":{"url":"https://github.com/AliSafari-IT/envage/issues"},"bin":{"envage":"./bin/envage.js"},"dist":{"shasum":"1babe064316b62813127f2c1675fe8053db7c4ff","tarball":"https://registry.npmjs.org/@asafarim/envage/-/envage-0.4.2.tgz","fileCount":63,"integrity":"sha512-J0LkAA+QYp2nd9txLWea/HnQbjusS+MaGcG45Q3EmbQFRNK0IS9yzJ185+DfReKH8Tnnc8eFTZw/zzqNkjXBWw==","signatures":[{"sig":"MEQCIHsl3lUXQfDlXLntEgdZTBKYXOa6Bl34rmXTRtYs96IAAiAo32kH4DNVIfC2Wogu0VJbg3Gnu8r/0zmucvzpErmNvQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":98866},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"dev":"tsc --watch","demo":"pnpm --filter envage-demo run dev","lint":"tsc --noEmit","test":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs","build":"tsc","typecheck":"tsc --noEmit","test:watch":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --watch","test:coverage":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --coverage"},"_npmUser":{"name":"asafarim.be","email":"asafarim.it@gmail.com"},"repository":{"url":"https://github.com/AliSafari-IT/envage.git","type":"git"},"description":"Secure, age-based encryption/decryption for .env files across multiple environments and monorepo app folders","directories":{},"_nodeVersion":"22.13.1","dependencies":{"chalk":"^5.3.0","commander":"^12.1.0","age-encryption":"^0.3.0"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.5","typescript":"^5.5.3","@types/jest":"^29.5.12","@types/node":"^20.14.0"},"_npmOperationalInternal":{"tmp":"tmp/envage_0.4.2_1783283846480_0.8791729768420704","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@asafarim/envage","version":"0.5.0","keywords":["age","encryption","env","dotenv","monorepo","secrets","cli"],"author":{"name":"Ali Safarim","email":"asafarim@gmail.com"},"license":"MIT","_id":"@asafarim/envage@0.5.0","maintainers":[{"name":"asafarim.be","email":"asafarim.it@gmail.com"}],"homepage":"https://AliSafari-IT.github.io/envage","bugs":{"url":"https://github.com/AliSafari-IT/envage/issues"},"bin":{"envage":"bin/envage.js"},"dist":{"shasum":"59d3d703817e8fafe4b71ffd1477fcd6029d0aec","tarball":"https://registry.npmjs.org/@asafarim/envage/-/envage-0.5.0.tgz","fileCount":75,"integrity":"sha512-QxYzTtftrv6z2S/gzH1BDML77HxKO0elGMIXHEiifbVX3/B9q8oKIbzjzUgzUg7zQ0zosTUSiizRtAH1DxX9kw==","signatures":[{"sig":"MEYCIQD/ruOMplN6xJf/ZPoZ/3LxXDmIJPwzZwxml9pN4gzIWQIhANpsqTsbUEk5Fyvf/UCOhZkyotMp1WkfgXnG3A9mQ9y/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCfL8bfPYKFbWQ5yl33aqgMpklgn1iI2JePJBX3vQ05sAIgOfGs+vl2xLnwrYw6ssNeTA6akTlMlrEPoZdTwYS8EtQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":123076},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"f67d734a629ea87c4140619bf6df2bb47fb9b657","scripts":{"dev":"tsc --watch","demo":"pnpm --filter envage-demo run dev","lint":"tsc --noEmit","test":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs","build":"tsc","typecheck":"tsc --noEmit","test:watch":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --watch","test:coverage":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --coverage","prepublishOnly":"pnpm run build && pnpm run test && pnpm run typecheck"},"_npmUser":{"name":"asafarim.be","email":"asafarim.it@gmail.com"},"repository":{"url":"git+https://github.com/AliSafari-IT/envage.git","type":"git"},"_npmVersion":"11.19.1","description":"Secure, age-based encryption/decryption for .env files across multiple environments and monorepo app folders","directories":{},"_nodeVersion":"24.22.1","dependencies":{"chalk":"^5.3.0","commander":"^12.1.0","age-encryption":"^0.3.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@11.2.2","devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.5","typescript":"^5.5.3","@types/jest":"^29.5.12","@types/node":"^20.14.0"},"_npmOperationalInternal":{"tmp":"tmp/envage_0.5.0_1793797476370_0.3268924962931734","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"_id":"@asafarim/envage@0.5.1","bin":{"envage":"bin/envage.js"},"bugs":{"url":"https://github.com/AliSafari-IT/envage/issues"},"dist":{"shasum":"cd53fd94c1da316d8a42558945c5e0943d7e8e1f","tarball":"https://registry.npmjs.org/@asafarim/envage/-/envage-0.5.1.tgz","fileCount":75,"integrity":"sha512-Q9ciqQk3NKfumrYEg3uYjOSdyfRjM6EWRM6iA7GQ8osDDnBnY0aVHzNS3K/GkWhxopAonbqX+ePDEQwbCo7CqA==","signatures":[{"sig":"MEYCIQCIiHf2uBHSzx1EGzqQ+jW2fWPlZ9z86DzSPQgXkyiurwIhAK1edMF4aLsvGcPPxejBatk8Vf4f+nd98OtiTrmJJhHw","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCpTL+rVHlS6YWsQBf5/LIjAT+vpfJW1XvQRJHnIi2CcgIgRItj2wI73ESw/nzzUxxhwYjLgFeLgbMHJfw/UjX9A4E="}],"unpackedSize":129342},"main":"./dist/index.js","name":"@asafarim/envage","type":"module","types":"./dist/index.d.ts","author":{"name":"Ali Safarim","email":"asafarim@gmail.com"},"engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"51c6ae33f19be824957fdfc480f718a0195cd635","license":"MIT","scripts":{"dev":"tsc --watch","demo":"pnpm --filter envage-demo run dev","lint":"tsc --noEmit","test":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs","build":"tsc","typecheck":"tsc --noEmit","test:watch":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --watch","test:coverage":"node --experimental-vm-modules node_modules/jest/bin/jest.js --config jest.config.cjs --coverage","prepublishOnly":"pnpm run build && pnpm run test && pnpm run typecheck"},"version":"0.5.1","_npmUser":{"name":"asafarim.be","email":"asafarim.it@gmail.com"},"homepage":"https://AliSafari-IT.github.io/envage","keywords":["age","encryption","env","dotenv","monorepo","secrets","cli"],"repository":{"url":"git+https://github.com/AliSafari-IT/envage.git","type":"git"},"_npmVersion":"11.19.1","description":"Secure, age-based encryption/decryption for .env files across multiple environments and monorepo app folders","directories":{},"maintainers":[{"name":"asafarim.be","email":"asafarim.it@gmail.com"}],"_nodeVersion":"24.22.2","dependencies":{"chalk":"^5.3.0","commander":"^12.1.0","age-encryption":"^0.3.0"},"_hasShrinkwrap":false,"packageManager":"pnpm@11.2.2","devDependencies":{"jest":"^29.7.0","ts-jest":"^29.1.5","typescript":"^5.5.3","@types/jest":"^29.5.12","@types/node":"^20.14.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/envage_0.5.1_1794686254320_0.8593967635888502"}}},"time":{"created":"2026-05-21T20:39:27.419Z","modified":"2026-11-14T19:57:34.686Z","0.1.0":"2026-05-21T20:39:27.766Z","0.2.0":"2026-05-21T21:25:14.924Z","0.3.0":"2026-05-21T21:55:01.149Z","0.3.1":"2026-05-22T13:17:30.487Z","0.3.2":"2026-05-22T13:25:37.367Z","0.3.3":"2026-05-31T21:09:51.817Z","0.4.0":"2026-07-05T19:03:29.841Z","0.4.1":"2026-07-05T19:23:26.384Z","0.4.2":"2026-07-05T20:37:26.620Z","0.5.0":"2026-11-04T13:04:36.459Z","0.5.1":"2026-11-14T19:57:34.486Z"},"bugs":{"url":"https://github.com/AliSafari-IT/envage/issues"},"author":{"name":"Ali Safarim","email":"asafarim@gmail.com"},"license":"MIT","homepage":"https://AliSafari-IT.github.io/envage","keywords":["age","encryption","env","dotenv","monorepo","secrets","cli"],"repository":{"url":"git+https://github.com/AliSafari-IT/envage.git","type":"git"},"description":"Secure, age-based encryption/decryption for .env files across multiple environments and monorepo app folders","maintainers":[{"name":"asafarim.be","email":"asafarim.it@gmail.com"}],"readme":"# Commit encrypted .env files with confidence\n\n### @asafarim/envage TS Package\n\n> **Secure, age-based encryption for `.env` files across monorepo environments.**\n\n`envage` lets you safely commit encrypted `.env` files to Git while keeping the\ndecrypted secrets out of version control. It uses the battle-tested\n[age](https://age-encryption.org) encryption format — the same tool used by\nGo, Rust, and DevSecOps toolchains worldwide.\n\n---\n\n## Features\n\n- 🔐 **age encryption** — uses `age-encryption` (pure TypeScript, no native deps)\n- 🌍 **Multi-environment** — `dev`, `staging`, `prod`, any custom names, or `root` for a plain `.env` file\n- 📁 **Monorepo-aware** — encrypt/decrypt all apps at once with `--all`\n- 👥 **Team recipients** — independent identities decrypt shared ciphertext; no private-key sharing\n- 🔑 **Key or passphrase** — supports X25519 keypairs and passphrase-based encryption\n- 🛡 **Git-safe** — auto-updates `.gitignore`; warns if you stage a decrypted file\n- ✅ **Production guard** — interactive confirmation required to decrypt `prod` files\n- 🧩 **Programmatic API** — use as a library in your own scripts\n- 📦 **pnpm / monorepo friendly** — works seamlessly with pnpm workspaces\n\n---\n\n## Compatibility\n\nRequires Node.js 20 or newer. Envage has no React dependency or peer-version\nrestriction and works in React 18 and React 19 project tooling. Its CLI and\nfilesystem API run in Node.js, outside browser-rendered components. The demo\nuses React 18, with a separate React 19 build in CI. The demo defaults to dark\nmode, remembers your theme choice, and includes CLI/API team-recipient examples\nand a Roadmap linked to the current milestone.\n\n## Installation\n\n```bash\n# In your monorepo root\npnpm add -D @asafarim/envage\n\n# Or globally\npnpm add -g @asafarim/envage\n```\n\n---\n\n## Quick Start\n\n### 1. Generate a keypair\n\n```bash\nnpx envage init-key\n```\n\nThis creates:\n```\n.age/key.txt   ← private key (mode 0600, gitignored automatically)\n.age/key.pub   ← public key  (safe to share with teammates)\n```\n\n### 2. Add your app folders to the config\n\n`init-key` also creates `envage.config.json` in the same folder when there is none\n(an existing file is never changed):\n\n```json\n{\n  \"apps\": [\".\"],\n  \"envs\": [\"production\", \"root\"],\n  \"keyFile\": \".age/key.txt\",\n  \"keyPubFile\": \".age/key.pub\"\n}\n```\n\nEdit it for your repository:\n\n- `apps`: folders relative to the root. `\".\"` is the root itself; add your own, for example `[\".\", \"apps/web\", \"packages/*\"]`.\n- `envs`: `\"root\"` is the plain `.env` file; any other name `<env>` is `.env.<env>` (`\"production\"` is `.env.production`).\n\nThe steps below use this edited config. Only the listed `envs` appear in `status` and are re-encrypted when recipients change, so list every environment you encrypt:\n\n```json\n{\n  \"apps\": [\".\", \"apps/web\", \"apps/admin\", \"packages/api\"],\n  \"envs\": [\"root\", \"dev\", \"staging\", \"prod\"],\n  \"keyFile\": \".age/key.txt\",\n  \"keyPubFile\": \".age/key.pub\"\n}\n```\n\n### 3. Encrypt your env files\n\n```bash\n# Encrypt a single app/env\nnpx envage encrypt apps/web --env dev\n\n# Encrypt all apps at once\nnpx envage encrypt --all --env prod\n\n# Encrypt plain .env files across all apps (one environment per invocation)\nnpx envage encrypt --all --env root\n```\n\n### 4. Check status\n\n```bash\nnpx envage status\n```\n\n```\napps/web\n  dev        🔒 encrypted\n  staging    🔒 encrypted\n  prod       🔒 encrypted\n\napps/admin\n  dev        🔓 decrypted (not yet encrypted)\n  prod       🔒 encrypted\n\npackages/api\n  dev        🔒 encrypted\n  prod       🔒 encrypted\n\n9 entries — 8 encrypted  1 decrypted\n```\n\n### 5. Decrypt on a new machine\n\n```bash\n# Restore your own private identity from secure backup, or have an authorized\n# teammate add your new public recipient (see Team encryption below).\nnpx envage decrypt apps/web --env dev\n\n# Decrypt all at once\nnpx envage decrypt --all --env dev\n```\n\n---\n\n## CLI Reference\n\n### `envage init-key`\n\nGenerate a new age X25519 keypair and, when the current folder has no\n`envage.config.json`, create a starter one that points at the new key files.\n\n```bash\nenvage init-key [--output <folder>] [--no-config]\n```\n\n| Option | Default | Description |\n|--------|---------|-------------|\n| `--output` | `.age` | Output folder for `key.txt` and `key.pub` |\n| `--no-config` | — | Do not create `envage.config.json` |\n\n---\n\n### `envage encrypt`\n\nEncrypt `.env.<env>` → `.env.<env>.age` (or `.env` → `.env.age` when `--env root`).\n\n```bash\nenvage encrypt [path] [options]\n```\n\n| Option | Default | Description |\n|--------|---------|-------------|\n| `--env` | `dev` | Environment name |\n| `--key` | auto-detected | Path to age key file |\n| `--passphrase` | — | Passphrase (prompted if omitted) |\n| `--all` | — | Encrypt all apps in `envage.config.json` |\n\n**Examples:**\n```bash\nenvage encrypt apps/web --env dev\nenvage encrypt apps/web --env prod --key .age/key.txt\nenvage encrypt --all --env staging\nenvage encrypt apps/web --env dev --passphrase \"my secret\"\n\n# Root env — targets the plain .env file (no suffix)\nenvage encrypt apps/portal --env root\nenvage encrypt --all --env root\n```\n\n---\n\n### `envage decrypt`\n\nDecrypt `.env.<env>.age` → `.env.<env>` (or `.env.age` → `.env` when `--env root`).\n\n```bash\nenvage decrypt [path] [options]\n```\n\n| Option | Default | Description |\n|--------|---------|-------------|\n| `--env` | `dev` | Environment name |\n| `--key` | auto-detected | Path to age private key file |\n| `--passphrase` | — | Passphrase |\n| `--all` | — | Decrypt all apps in `envage.config.json` |\n\n> ⚠️ Decrypting `prod` or `production` environments always prompts for\n> manual confirmation.\n\n**Examples:**\n```bash\nenvage decrypt apps/web --env dev\nenvage decrypt --all --env prod\n\n# Root env — targets .env.age → .env\nenvage decrypt apps/portal --env root\nenvage decrypt --all --env root\n```\n\n---\n\n### `envage recipient add/list/remove`\n\nManage team membership and re-encrypt every existing configured ciphertext.\n`add` and `remove` take one complete public recipient plus optional `--key <identity-file>`.\nSee [Team encryption](#team-encryption-v050) for configuration, recovery, and revocation limits.\n\n### `envage status`\n\nShow encryption status for all configured apps and environments.\n\n```bash\nenvage status [path]\n```\n\n| Option | Description |\n|--------|-------------|\n| `--env` | Filter output to a single environment |\n\n---\n\n## Configuration — `envage.config.json`\n\n`envage init-key` creates a starter file at the root of your repository; you can also write it by hand:\n\n```json\n{\n  \"apps\": [\n    \"apps/web\",\n    \"apps/admin\",\n    \"packages/api\"\n  ],\n  \"envs\": [\"dev\", \"staging\", \"prod\"],\n  \"keyFile\": \".age/key.txt\",\n  \"keyPubFile\": \".age/key.pub\"\n}\n```\n\n### Root env — plain `.env` files\n\nUse `\"root\"` as an env name to target the bare `.env` file (no suffix) in each app folder.\nThis is useful for projects that already use a single `.env` and don't want to rename it.\n\n```json\n{\n  \"apps\": [\".\", \"apps/web\", \"apps/admin\", \"packages/api\"],\n  \"envs\": [\"root\", \"dev\", \"staging\", \"prod\"],\n  \"keyFile\": \".age/key.txt\"\n}\n```\n\n| env name | plaintext file | encrypted file |\n|----------|---------------|----------------|\n| `root` | `.env` | `.env.age` |\n| `dev` | `.env.dev` | `.env.dev.age` |\n| `staging` | `.env.staging` | `.env.staging.age` |\n| `prod` | `.env.prod` | `.env.prod.age` |\n\n### Glob patterns in `apps`\n\nApp entries may use glob patterns, which are expanded against the filesystem\nto the matching **directories** that exist. This is handy for monorepos where\nyou don't want to list every package by hand.\n\n```json\n{\n  \"apps\": [\".\", \"apps/*\", \"packages/*\"],\n  \"envs\": [\"root\", \"production\"],\n  \"keyFile\": \".age/key.txt\",\n  \"keyPubFile\": \".age/key.pub\"\n}\n```\n\n- `*` matches a single path segment (e.g. `apps/*` → `apps/web`, `apps/admin`).\n- `**` matches nested directories at any depth.\n- Only existing directories are matched; files are ignored.\n- Non-glob entries (like `.` or `apps/web`) are kept as-is, even if the folder\n  does not exist yet.\n- Results are de-duplicated, so overlapping patterns are safe.\n\n### Config fields\n\n| Field | Type | Default | Description |\n|-------|------|---------|-------------|\n| `apps` | `string[]` | `[]` | App folder paths (relative to cwd). Supports glob patterns (see below) |\n| `envs` | `string[]` | `[\"dev\",\"staging\",\"prod\"]` | Environment names to manage |\n| `keyFile` | `string` | `.age/key.txt` | Path to private key |\n| `keyPubFile` | `string` | `.age/key.pub` | Path to public key |\n| `recipients` | `string[]` | omitted | Public age recipients; omission keeps legacy single-key mode |\n\n---\n\n## Programmatic API\n\n```typescript\nimport {\n  encryptEnv,\n  decryptEnv,\n  generateKeyPair,\n  generateKeyPairToFolder,\n  getEnvStatus,\n  initConfig,\n  loadConfig,\n  resolveApps,\n  ensureGitignore,\n  updateRecipient,\n} from \"@asafarim/envage\";\n\n// Generate a keypair\nconst { identity, recipient } = await generateKeyPair();\n\n// Write keypair to disk\nawait generateKeyPairToFolder(\".age\");\n\n// Encrypt a named env file (.env.dev → .env.dev.age)\nawait encryptEnv({\n  folder: \"apps/web\",\n  env: \"dev\",\n  keyFile: \".age/key.txt\",\n});\n\n// Encrypt the root env (.env → .env.age)\nawait encryptEnv({\n  folder: \"apps/portal\",\n  env: \"root\",\n  keyFile: \".age/key.txt\",\n});\n\n// Passphrase-based encryption\nawait encryptEnv({\n  folder: \"apps/web\",\n  env: \"dev\",\n  passphrase: \"my-secret-passphrase\",\n});\n\n// Decrypt a named env file (.env.dev.age → .env.dev)\nawait decryptEnv({\n  folder: \"apps/web\",\n  env: \"dev\",\n  keyFile: \".age/key.txt\",\n});\n\n// Decrypt the root env (.env.age → .env)\nawait decryptEnv({\n  folder: \"apps/portal\",\n  env: \"root\",\n  keyFile: \".age/key.txt\",\n});\n\n// Create a starter envage.config.json if there is none (an existing file is kept)\nconst { created } = await initConfig();\n\n// Expand app globs (\"apps/*\") to actual folder paths\nconst config = await loadConfig();\nconst folders = await resolveApps(config);\n// → [\"/repo/apps/web\", \"/repo/apps/admin\", ...]\n\n// Check status (globs in config are expanded automatically)\nconst statuses = await getEnvStatus(config);\nstatuses.forEach((s) => {\n  console.log(`${s.folder} [${s.env}]: encrypted=${s.encrypted} decrypted=${s.decrypted}`);\n});\n\n// Ensure .gitignore rules are present\nawait ensureGitignore();\n```\n\n---\n\n## Team encryption (v0.5.0)\n\nEach teammate runs `envage init-key` locally and shares **only** their public\n`key.pub`. Keep private identities on their owner's machine or in a secure backup.\nAn existing authorized member can onboard another public recipient:\n\n```bash\nenvage recipient add age1... --key .age/key.txt\nenvage recipient list\nenvage recipient remove age1... --key .age/key.txt\n```\n\nReplace `age1...` with a complete age X25519 public key. Commands run from the\nproject root and require an existing `envage.config.json` with nonempty `apps`\nand `envs`. Add/remove re-encrypt **all existing ciphertext** in those configured\nslots, including glob-expanded apps and `root` environments. Unconfigured files\nare outside their scope. Missing ciphertext is skipped. Passphrase-encrypted or\nundecryptable files abort the entire operation before replacements begin.\n\nPublic recipients are saved in the versioned config:\n\n```json\n{\n  \"apps\": [\".\", \"apps/*\"],\n  \"envs\": [\"root\", \"dev\", \"prod\"],\n  \"keyFile\": \".age/key.txt\",\n  \"recipients\": [\"age1...\", \"age1...\"]\n}\n```\n\nCommit the updated config and ciphertext together. Ordinary CLI encryption uses\nconfigured recipients, even when `--key` is supplied, and needs no private key.\nAn explicit `--passphrase` selects passphrase encryption instead. Configs without\n`recipients` keep the legacy single-key behavior. The first `recipient add`\nretains the supplied identity's public key as the initial authorized member.\nDuplicate, invalid, unknown, or last-recipient removal requests fail safely.\n\nThe programmatic API accepts explicit public recipients:\n\n```ts\nawait encryptEnv({ folder: \"apps/web\", env: \"dev\", recipients: [alicePublic, bobPublic] });\nawait updateRecipient(\"add\", bobPublic, { cwd: projectRoot, keyFile: \".age/key.txt\" });\n```\n\n`encryptEnv` does not load config automatically; pass `config.recipients` yourself.\nRecipient changes decrypt only in memory, never to plaintext files. Replacements\nuse same-directory temporary files and atomic renames. On a write failure,\ncompleted replacements are rolled back. Multi-file replacement is **not** one\nfilesystem transaction: do not run concurrent encryption/config writers. A lock\nprevents concurrent recipient updates. Originals and a manifest are saved in a\nprivate `.envage-recovery-*` directory until success or successful rollback.\nAfter a process interruption or failed rollback, stop all writers, restore **every**\noriginal listed in that directory's `manifest.json`, verify decryption, then\nremove the recovery directory and `envage.config.json.lock`. Never commit these\nrecovery artifacts. Keep a secure backup or clean Git checkpoint before changes.\n\nRemoving a recipient blocks access to the newly encrypted files only. Old Git\nhistory, ciphertext copies, and previously learned secrets remain accessible.\nRotate underlying API credentials separately if access must be revoked.\n\n---\n\n## Git Integration\n\n### `.gitignore` rules\n\nRunning `envage init-key` automatically adds these rules to your `.gitignore`:\n\n```gitignore\n# --- envage managed ---\n# Decrypted env files — never commit\n.env*\n!.env*.age\n!.env.example\n!.env.template\n# Age private key\n.age/key.txt\n# --- end envage ---\n```\n\n### Staged file warning\n\nIf you accidentally `git add` a decrypted env file before encrypting, the\n`encrypt` command will catch it and exit with:\n\n```\n✖ You are trying to commit a decrypted env file.\n✖ Only encrypted .age files are allowed.\n  apps/web/.env.prod\n```\n\n### Optional: pre-commit hook\n\nAdd this to `.git/hooks/pre-commit` to prevent accidental commits entirely:\n\n```bash\n#!/usr/bin/env bash\nnpx envage status 2>/dev/null | grep -q \"decrypted\" && \\\n  echo \"❌ You have decrypted env files. Run: npx envage encrypt --all\" && \\\n  exit 1\nexit 0\n```\n\n---\n\n## Monorepo Structure\n\n```\nmonorepo/\n├── .age/\n│   ├── key.txt              ← private key (gitignored)\n│   └── key.pub              ← public key  (commit this)\n├── apps/\n│   ├── web/\n│   │   ├── .env.dev         ← decrypted (gitignored)\n│   │   ├── .env.dev.age     ← encrypted (committed ✅)\n│   │   ├── .env.prod        ← decrypted (gitignored)\n│   │   └── .env.prod.age    ← encrypted (committed ✅)\n│   ├── admin/\n│   │   ├── .env.dev.age\n│   │   └── .env.prod.age\n│   └── portal/              ← app using root env (plain .env)\n│       ├── .env             ← decrypted (gitignored)\n│       ├── .env.age         ← encrypted (committed ✅)\n│       └── .env.staging.age ← encrypted (committed ✅)\n├── packages/\n│   └── api/\n│       ├── .env.dev.age\n│       └── .env.prod.age\n├── envage.config.json       ← created by init-key, committed ✅\n└── .gitignore               ← auto-updated by envage\n```\n\n---\n\n## Security Notes\n\n- **Never commit or share `.age/key.txt`** — it is your private identity.\n  Give each teammate their own identity and add only their public recipient.\n- **Decrypted values are never logged** — not in verbose mode, not in errors\n- **Production decryption is gated** — always requires explicit `y` confirmation\n- **Encrypted files are binary** — they cannot be accidentally read as text\n- The `age` format provides authenticated encryption; tampering is detectable\n\n---\n\n## Development\n\n```bash\n# Install dependencies\npnpm install\n\n# Build\npnpm build\n\n# Run tests\npnpm test\n\n# Type-check only\npnpm lint\n```\n\n---\n\n## License\n\nMIT © [Ali Safarim](https://github.com/asafarim)\n","readmeFilename":"README.md"}