New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

dotenv-dev

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenv-dev

dotenv with a prod-protecting failsafe

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

dotenv-dev

Make it a bit harder to inject prod secrets into your local dev, when you don't mean to.

Quickstart

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"

All options

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

Package last updated on 17 Oct 2025

Did you know?

Socket

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.

Install

Related posts