Skip to content
JS
Alternatives

dotenv-flow alternatives

8 packages that do the same job as dotenv-flow: ts-dotenv, @dotenvx/dotenvx, dotenv-expand, env-var, @dotenvx/primitives, @dotenvx/tooling, dotenv-parse-variables, @ngx-env/builder. Figures below are from npm, GitHub and Bundlephobia.

Data as of 25 Sept 2026
PackageWeekly downloads12-month changeGzipDependenciesLast releaseModuleTypesRuntimes
dotenv-flow
This package
799.1k+89%-12 years agoCommonJSBundled-
ts-dotenv23.2k+215%-03 years agoCommonJSBundled-
@dotenvx/dotenvx8.8m+1056%-62 days agoCommonJSBundled-
dotenv-expand32.2m+77%-01 month agoCommonJSBundled-
env-var618.2k+144%-02 years agoCommonJSBundled-
@dotenvx/primitives4m--02 days agoCommonJSNone-
@dotenvx/tooling307.4k--02 months agoCommonJSNone-
dotenv-parse-variables79.8k-20%-25 years agoCommonJSNone-
@ngx-env/builder29.5k--21 month ago-None-

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.

Strongly-typed environment variables from .env & process.env

Compared with dotenv-flow

  • 34x fewer weekly downloads (23.2k vs 799.1k)
  • 0 dependencies vs 1
  • Declares no Node.js engine range vs Node.js >= 12.0.0
  • Last release 5 Feb 2023 vs 26 Dec 2023
  • 21x fewer GitHub stars (44 vs 902)

a secure dotenv–from the creator of `dotenv`

Compared with dotenv-flow

  • 11x more weekly downloads (8.8m vs 799.1k)
  • 6 dependencies vs 1
  • Declares no Node.js engine range vs Node.js >= 12.0.0
  • Last release 22 Sept 2026 vs 26 Dec 2023
  • 6.4x more GitHub stars (5.8k vs 902)

Expand environment variables using dotenv

Compared with dotenv-flow

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

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

Compared with dotenv-flow

  • 1.3x fewer weekly downloads (618.2k vs 799.1k)
  • 0 dependencies vs 1
  • Declares Node.js >=10 vs Node.js >= 12.0.0
  • Last release 20 May 2024 vs 26 Dec 2023
  • 1.4x fewer GitHub stars (625 vs 902)

a secure dotenv–from the creator of `dotenv`

Compared with dotenv-flow

  • 5.0x more weekly downloads (4m vs 799.1k)
  • 0 dependencies vs 1
  • No types vs bundled types
  • Declares no Node.js engine range vs Node.js >= 12.0.0
  • Last release 22 Sept 2026 vs 26 Dec 2023
  • 6.4x more GitHub stars (5.8k vs 902)

a secure dotenv–from the creator of `dotenv`

Compared with dotenv-flow

  • 2.6x fewer weekly downloads (307.4k vs 799.1k)
  • 0 dependencies vs 1
  • No types vs bundled types
  • Declares no Node.js engine range vs Node.js >= 12.0.0
  • Last release 21 Jul 2026 vs 26 Dec 2023
  • 6.4x more GitHub stars (5.8k vs 902)

Parse dotenv files for Boolean, Array, and Number variable types, built for CrocodileJS

Compared with dotenv-flow

  • 10x fewer weekly downloads (79.8k vs 799.1k)
  • 2 dependencies vs 1
  • No types vs bundled types
  • Declares Node.js >= 8.3.0 vs Node.js >= 12.0.0
  • Last release 12 Feb 2021 vs 26 Dec 2023
  • 7.3x fewer GitHub stars (124 vs 902)

Easily inject environment variables into your Angular applications

Compared with dotenv-flow

  • 27x fewer weekly downloads (29.5k vs 799.1k)
  • 2 dependencies vs 1
  • - vs CommonJS
  • No types vs bundled types
  • Declares no Node.js engine range vs Node.js >= 12.0.0
  • Last release 13 Aug 2026 vs 26 Dec 2023
  • 2.9x fewer GitHub stars (313 vs 902)
Sources: npm registry, npm downloads API, GitHub API, Bundlephobia. Data fetched 25 Sept 2026.

Indexability: Indexed.