
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.
Make it a bit harder to inject prod secrets into your local dev, when you don't mean to.
npm install --save-dev dotenv-dev
Update your script from:
"db:push": "dotenv npx drizzle-kit push"
To:
"db:push": "dotenv-dev DB_URL -i localhost -- npx drizzle-kit push"
Validates that an environment variables contain (--include) or does
not contain (--exclude) specific strings before executing a script.
Usage:
dotenv-dev <KEY> [options] -- <script> [args...]
Arguments:
KEY Environment variable name to validate
Options:
-i, --include <str> KEY must contain this string to continue
-x, --exclude <str> KEY must NOT contain this string to continue
-f, --file <path> Env file to load (default: .env)
At least one of --include or --exclude is required.
Examples:
dotenv-dev DATABASE_URL -i localhost -- npm start
dotenv-dev DATABASE_URL -x production -- ./deploy.sh
dotenv-dev API_KEY -i dev -x prod -f .env.test -- npm test
FAQs
dotenv with a prod-protecting failsafe
We found that dotenv-dev 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.