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.
| Package | Weekly downloads | 12-month change | Gzip | Dependencies | Last release | Module | Types | Runtimes |
|---|---|---|---|---|---|---|---|---|
| dotenv-expand This package | 32.2m | +77% | - | 0 | 1 month ago | CommonJS | Bundled | - |
| dotenv-flow | 799.1k | +89% | - | 1 | 2 years ago | CommonJS | Bundled | - |
| dotenv | 130.9m | +122% | - | 0 | 2 days ago | CommonJS | Bundled | - |
| dotenv-defaults | 986.3k | -0% | - | 1 | 7 months ago | ESM only | Bundled | - |
| env-var | 618.2k | +144% | - | 0 | 2 years ago | CommonJS | Bundled | - |
| dotenv-webpack | 929.6k | -8% | - | 1 | 6 months ago | CommonJS | Bundled | - |
| convict | 883.5k | +44% | - | 2 | 6 months ago | CommonJS | None | - |
| envalid | 493.3k | +56% | - | 1 | 3 months ago | CommonJS | Bundled | - |
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)
Indexability: Indexed: 0 US searches/month for "dotenv-expand alternatives".