{"_id":"@dhiyanesh/env-check","_rev":"6-3531175e69f61f563d89b255be50cd5e","name":"@dhiyanesh/env-check","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@dhiyanesh/env-check","version":"1.0.1","keywords":["env","dotenv","precommit","husky","check"],"author":{"name":"Dhiyanesh"},"license":"MIT","_id":"@dhiyanesh/env-check@1.0.1","maintainers":[{"name":"dhiyanesh","email":"dhiyanesh7338942092@gmail.com"}],"bin":{"env-check":"dist/index.js"},"dist":{"shasum":"42d88bc5d0e486d5a5e9f4942eecfe823aa1f0e9","tarball":"https://registry.npmjs.org/@dhiyanesh/env-check/-/env-check-1.0.1.tgz","fileCount":8,"integrity":"sha512-FQRusP79xEwtJNeULG3iGsZ33qaEyyrt3tFNKFhFwYjkmcOtozkBPHoW0s7XNGg9ctvrZpbBu8gn0Fd9+R/o5Q==","signatures":[{"sig":"MEUCIQCZDDiqF2E0g3BlOrCYcEY1I6M4NprY7Z1pZSVh0NEWuQIgGbOf2dVFu+LR6V48CTd9f9Y+TcPglvPURXJVeiQdlEE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12490},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","scripts":{"build":"tsc","start":"node --loader ts-node/esm src/index.ts"},"_npmUser":{"name":"dhiyanesh","email":"dhiyanesh7338942092@gmail.com"},"_npmVersion":"10.7.0","description":"Ensure all .env variables are present in .env.example before commit","directories":{},"_nodeVersion":"20.12.2","dependencies":{"chalk":"^5.6.0","dotenv":"^16.6.1","fs-extra":"^11.3.1","commander":"^11.1.0"},"_hasShrinkwrap":false,"devDependencies":{"ts-node":"^10.9.2","typescript":"^5.9.2","@types/node":"^20.19.11","@types/fs-extra":"^11.0.4"},"_npmOperationalInternal":{"tmp":"tmp/env-check_1.0.1_1756878897548_0.31488363457390345","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@dhiyanesh/env-check","version":"1.0.2","description":"Ensure all .env variables are present in .env.example before commit","type":"module","main":"dist/index.js","bin":{"env-check":"dist/index.js"},"scripts":{"build":"tsc","start":"node --loader ts-node/esm src/index.ts"},"keywords":["env","dotenv","precommit","husky","check"],"author":{"name":"Dhiyanesh"},"license":"MIT","dependencies":{"chalk":"^5.6.0","commander":"^11.1.0","dotenv":"^16.6.1","fs-extra":"^11.3.1"},"devDependencies":{"@types/fs-extra":"^11.0.4","@types/node":"^20.19.11","ts-node":"^10.9.2","typescript":"^5.9.2"},"_id":"@dhiyanesh/env-check@1.0.2","types":"./dist/index.d.ts","_nodeVersion":"20.12.2","_npmVersion":"10.7.0","dist":{"integrity":"sha512-+gWVwUQCel4KN/iG7P6pmNfx56wXkkgeAmC5GOunB9HX/2QF0SwhA9G+CSzEQJofPhcqkChm+UQX1Rk1KXESZw==","shasum":"944818b4bff4d3a7e4da036fdade92c4677d78de","tarball":"https://registry.npmjs.org/@dhiyanesh/env-check/-/env-check-1.0.2.tgz","fileCount":8,"unpackedSize":12699,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIC9QbiIHMgEUswkOTY/zPDcinThqj/g/BRraAxzL/TCKAiEA/HadCnmKhDn/y6XgAIOuI5+XaPpOl5dhXoWN5keM19A="}]},"_npmUser":{"name":"dhiyanesh","email":"dhiyanesh7338942092@gmail.com"},"directories":{},"maintainers":[{"name":"dhiyanesh","email":"dhiyanesh7338942092@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/env-check_1.0.2_1756881653327_0.9382389204218406"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-03T05:54:57.472Z","modified":"2025-09-03T06:40:53.703Z","1.0.5":"2025-09-03T05:51:29.418Z","1.0.0":"2025-09-03T05:52:27.686Z","1.0.1":"2025-09-03T05:54:57.705Z","1.0.2":"2025-09-03T06:40:53.505Z"},"author":{"name":"Dhiyanesh"},"license":"MIT","keywords":["env","dotenv","precommit","husky","check"],"description":"Ensure all .env variables are present in .env.example before commit","maintainers":[{"name":"dhiyanesh","email":"dhiyanesh7338942092@gmail.com"}],"readme":"# env-check (@dhiyanesh/env-check)\r\n\r\n`env-check` is a simple CLI tool to ensure your `.env.example` file is in sync with your `.env` file. It can add missing variables, comment out extra ones, or remove them.\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install -g @dhiyanesh/env-check\r\n```\r\n\r\n## Usage\r\n\r\nRun the CLI in your project root:\r\n\r\n```bash\r\nenv-check [options]\r\n```\r\n\r\n## Options\r\n\r\n### Add missing variables\r\n\r\n```bash\r\nenv-check --add\r\n```\r\n\r\nAdd missing variables from .env to .env.example.\r\n\r\n### Comment extra variables\r\n\r\n```bash\r\nenv-check --remove\r\n```\r\n\r\nComment out extra variables in .env.example.\r\n\r\n### Remove extra variables\r\n\r\n```bash\r\nenv-check --remove-hard\r\n```\r\n\r\nRemove extra variables from .env.example.\r\n\r\n### Sync variables\r\n\r\n```bash\r\nenv-check --sync\r\n```\r\n\r\nAdd missing variables and comment extra ones.\r\n\r\n### Sync (with remove) extra variables\r\n\r\n```bash\r\nenv-check --sync-hard\r\n```\r\n\r\nAdd missing variables and remove extra ones.\r\n\r\n## Usage with husky\r\n\r\nAdd the following to husky pre-commit to automatically sync the .env and .env-example files before pushing your code.\r\n\r\n```bash\r\nnpx env-check --sync-hard\r\ngit add .env.example\r\n```\r\n\r\n## Notes\r\n\r\nThe tool requires .env file to exist in the project root.\r\n\r\nAfter running, .env.example will be updated automatically.\r\n","readmeFilename":"README.md"}