
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
env-verifier-cli
Advanced tools
🛡️ A command-line tool to validate .env files against a defined schema to ensure correct environment variable configurations.
A lightweight and powerful CLI tool to validate your .env files against a defined schema.
Very easy to configure with minimal setup.
Validate .env files for:
string, number, boolean, array, JSON (object), Object, Date.env files (e.g., .env.production, .env.staging, .env.test) and supports type-specific validation for eachGlobal:
npm install -g env-verifier-cli
Local (as dev dependency):
npm install --save-dev env-verifier-cli
env-verifier --env .env --schema env.schema.json
Or
env-verifier --env .env.staging --schema env.schema.json
Or for different folder paths
env-verifier --env %USERPROFILE%\Downloads\.env --schema %USERPROFILE%\Downloads\env.schema.json --exit true
env-verifier --env $HOME/Downloads/.env --schema $HOME/Downloads/env.schema.json --exit 1
env-verifier --env ~/Downloads/.env --schema ~/Downloads/env.schema.json --exit false
--env Path to the .env file to validate (default: .env)
--schema Path to the schema JSON file (default: env.schema.json)
--exit Set true, 'true' or 1 if you want to throw on invalids or warnings (default: true)
env.schema.json).env file:
API_KEY=abc123
DEBUG_MODE=true
PORT=3000
env.schema.json file:
{
"REQUIRED_KEYS": {
"API_KEY": "string",
"DEBUG_MODE": "boolean"
},
"OPTIONAL_KEYS": {
"PORT": "number"
}
}
my-api-key, https://example.com, debug3000, 42, 3.14true, false["https://myapp.com", "https://admin.myapp.com"], ["feature1", "feature2", "feature3"]{"theme": "dark", "notifications": true}, {"maxRetries": 3, "timeout": 5000}2025-01-01, 2023-05-01T15:30:00ZDon't worry, the .env files provided in this repository contain dummy data only.
FAQs
🛡️ A command-line tool to validate .env files against a defined schema to ensure correct environment variable configurations.
We found that env-verifier-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.