nero-env
v1.0.0
Published
Validate and compare .env files to catch missing, empty, and unused variables.
Maintainers
Readme
What is nero-env?
nero-env is a CLI tool for validating and comparing .env files against .env.example.
It helps catch missing, empty, and unused environment variables early.
Installation
Install globally using npm:
npm install -g nero-envBasic Usage
Run in your project directory:
nero-envThis will check for .env and .env.example files in the current directory.
Check a Specific Project
Specify a custom path:
nero-env --path ./apps/apiWhat it checks
- Missing variables → defined in
.env.examplebut not in.env - Empty values → defined in
.envbut has no value assigned - Unused variables → present in
.envbut not declared in.env.example
Output clearly shows which file needs fixing.
