@dotenvx/dotenvx alternatives
7 packages that do the same job as @dotenvx/dotenvx: dotenv, dotenv-flow, varlock, env-var, dotenv-webpack, convict, dotenv-defaults. Figures below are from npm, GitHub and Bundlephobia.
| Package | Weekly downloads | 12-month change | Gzip | Dependencies | Last release | Module | Types | Runtimes |
|---|---|---|---|---|---|---|---|---|
| @dotenvx/dotenvx This package | 8.8m | +1056% | - | 6 | 2 days ago | CommonJS | Bundled | - |
| dotenv | 130.9m | +122% | - | 0 | 2 days ago | CommonJS | Bundled | - |
| dotenv-flow | 799.1k | +89% | - | 1 | 2 years ago | CommonJS | Bundled | - |
| varlock | 194k | +24258% | - | 0 | 6 days ago | ESM + CommonJS | 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 | - |
| dotenv-defaults | 986.3k | -0% | - | 1 | 7 months ago | ESM only | 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 file
Compared with @dotenvx/dotenvx
- 15x more weekly downloads (130.9m vs 8.8m)
- 0 dependencies vs 6
- Declares Node.js >=12 vs none declared
- Last release 22 Sept 2026 vs 22 Sept 2026
- 3.5x more GitHub stars (20.5k vs 5.8k)
Loads environment variables from `.env.[development|test|production][.local]` files
Compared with @dotenvx/dotenvx
- 11x fewer weekly downloads (799.1k vs 8.8m)
- 1 dependency vs 6
- Declares Node.js >= 12.0.0 vs none declared
- Last release 26 Dec 2023 vs 22 Sept 2026
- 6.4x fewer GitHub stars (902 vs 5.8k)
AI-safe .env files: Schemas for agents, Secrets for humans.
Compared with @dotenvx/dotenvx
- 46x fewer weekly downloads (194k vs 8.8m)
- 0 dependencies vs 6
- ESM + CommonJS vs CommonJS
- Declares Node.js >=22.3.0 vs none declared
- Last release 18 Sept 2026 vs 22 Sept 2026
- 1.3x fewer GitHub stars (4.6k vs 5.8k)
Verification, sanitization, and type coercion for environment variables in Node.js
Compared with @dotenvx/dotenvx
- 14x fewer weekly downloads (618.2k vs 8.8m)
- 0 dependencies vs 6
- Declares Node.js >=10 vs none declared
- Last release 20 May 2024 vs 22 Sept 2026
- 9.3x fewer GitHub stars (625 vs 5.8k)
A simple webpack plugin to support dotenv.
Compared with @dotenvx/dotenvx
- 9.5x fewer weekly downloads (929.6k vs 8.8m)
- 1 dependency vs 6
- Declares Node.js >=18.18.0 vs none declared
- Last release 7 Mar 2026 vs 22 Sept 2026
- 4.5x fewer GitHub stars (1.3k vs 5.8k)
Featureful configuration management library for Node.js (nested structure, schema validation, etc.)
Compared with @dotenvx/dotenvx
- 10x fewer weekly downloads (883.5k vs 8.8m)
- 2 dependencies vs 6
- No types vs bundled types
- Declares Node.js >=6 vs none declared
- Last release 19 Mar 2026 vs 22 Sept 2026
- 2.4x fewer GitHub stars (2.4k vs 5.8k)
dotenv... but with defaults!
Compared with @dotenvx/dotenvx
- 9.0x fewer weekly downloads (986.3k vs 8.8m)
- 1 dependency vs 6
- ESM only vs CommonJS
- Declares Node.js >=18.0.0 vs none declared
- Last release 2 Feb 2026 vs 22 Sept 2026
- 73x fewer GitHub stars (80 vs 5.8k)
Indexability: Indexed.