Skip to content
JS
Alternatives

dotenv-expand alternatives

7 packages that do the same job as dotenv-expand: dotenv-flow, dotenv, dotenv-defaults, env-var, dotenv-webpack, convict, envalid. Figures below are from npm, GitHub and Bundlephobia.

Data as of 25 Sept 2026
PackageWeekly downloads12-month changeGzipDependenciesLast releaseModuleTypesRuntimes
dotenv-expand
This package
32.2m+77%-01 month agoCommonJSBundled-
dotenv-flow799.1k+89%-12 years agoCommonJSBundled-
dotenv130.9m+122%-02 days agoCommonJSBundled-
dotenv-defaults986.3k-0%-17 months agoESM onlyBundled-
env-var618.2k+144%-02 years agoCommonJSBundled-
dotenv-webpack929.6k-8%-16 months agoCommonJSBundled-
convict883.5k+44%-26 months agoCommonJSNone-
envalid493.3k+56%-13 months agoCommonJSBundled-

12-month change compares the average of the last 4 weeks of downloads with the first 4 weeks of the 52-week series. Gzip size is for the whole package (Bundlephobia). Runtimes are taken from each package's own documentation; "-" means not recorded.

Loads environment variables from `.env.[development|test|production][.local]` files

Compared with dotenv-expand

  • 40x fewer weekly downloads (799.1k vs 32.2m)
  • 1 dependency vs 0
  • Declares Node.js >= 12.0.0 vs Node.js >=16
  • Last release 26 Dec 2023 vs 29 Jul 2026
  • 1.2x fewer GitHub stars (902 vs 1.1k)

Loads environment variables from .env file

Compared with dotenv-expand

  • 4.1x more weekly downloads (130.9m vs 32.2m)
  • Declares Node.js >=12 vs Node.js >=16
  • Last release 22 Sept 2026 vs 29 Jul 2026
  • 19x more GitHub stars (20.5k vs 1.1k)

dotenv... but with defaults!

Compared with dotenv-expand

  • 33x fewer weekly downloads (986.3k vs 32.2m)
  • 1 dependency vs 0
  • ESM only vs CommonJS
  • Declares Node.js >=18.0.0 vs Node.js >=16
  • Last release 2 Feb 2026 vs 29 Jul 2026
  • 13x fewer GitHub stars (80 vs 1.1k)

Verification, sanitization, and type coercion for environment variables in Node.js

Compared with dotenv-expand

  • 52x fewer weekly downloads (618.2k vs 32.2m)
  • Declares Node.js >=10 vs Node.js >=16
  • Last release 20 May 2024 vs 29 Jul 2026
  • 1.7x fewer GitHub stars (625 vs 1.1k)

A simple webpack plugin to support dotenv.

Compared with dotenv-expand

  • 35x fewer weekly downloads (929.6k vs 32.2m)
  • 1 dependency vs 0
  • Declares Node.js >=18.18.0 vs Node.js >=16
  • Last release 7 Mar 2026 vs 29 Jul 2026
  • 1.2x more GitHub stars (1.3k vs 1.1k)

Featureful configuration management library for Node.js (nested structure, schema validation, etc.)

Compared with dotenv-expand

  • 36x fewer weekly downloads (883.5k vs 32.2m)
  • 2 dependencies vs 0
  • No types vs bundled types
  • Declares Node.js >=6 vs Node.js >=16
  • Last release 19 Mar 2026 vs 29 Jul 2026
  • 2.2x more GitHub stars (2.4k vs 1.1k)

Validation for your environment variables

Compared with dotenv-expand

  • 65x fewer weekly downloads (493.3k vs 32.2m)
  • 1 dependency vs 0
  • Declares Node.js >=18 vs Node.js >=16
  • Last release 9 Jun 2026 vs 29 Jul 2026
  • 1.5x more GitHub stars (1.6k vs 1.1k)
Sources: npm registry, npm downloads API, GitHub API, Bundlephobia. Data fetched 25 Sept 2026.

Indexability: Indexed: 0 US searches/month for "dotenv-expand alternatives".