Skip to content
JS
Comparison

dotenv vs @dotenvx/dotenvx

ConfigurationPackage data 25 Sept 2026
dotenvv18.0.3, 22 Sept 2026

Loads environment variables from .env file

$ npm install dotenv
@dotenvx/dotenvxv2.30.0, 22 Sept 2026

a secure dotenv–from the creator of `dotenv`

$ npm install @dotenvx/dotenvx
Metricdotenv@dotenvx/dotenvxDifference
Weekly downloads130,884,5268,842,968dotenv 14.8x higher
12-month download growth+122%+1056%@dotenvx/dotenvx +934 pts
Gzip size---
Minified size---
Dependencies06@dotenvx/dotenvx 6 more
Unpacked size44 kB708 kBdotenv 16.1x smaller
Latest release18.0.3, 22 Sept 20262.30.0, 22 Sept 2026Same day
Releases, last 12 months11119@dotenvx/dotenvx 108 more
First published5 Jul 201321 Nov 2023dotenv 10.4 years earlier
GitHub stars20,5435,809dotenv 3.5x higher
Open issues04@dotenvx/dotenvx 4 more
Open pull requests10dotenv 1 more
Contributors120--
Commits, last 52 weeks2361,330@dotenvx/dotenvx 5.6x higher
TypeScript typesBundledBundledSame
Module formatCommonJSCommonJSSame
Runtimes---
LicenseBSD-2-ClauseBSD-3-ClauseDiffers

Green marks the smaller size or the more recent release. Bold marks the higher count, with no judgement implied. Sizes are for the whole package per Bundlephobia. Growth compares the average of the last 4 weeks with the first 4 weeks of the 52-week series.

dotenv130.9m latest week@dotenvx/dotenvx8.8m latest week
Week of 23 Sept 2025Week of 15 Sept 2026
Weekly npm downloads, 52 weeks. Y axis starts at zero. Values are not smoothed.

dotenv

Major versions
  1. 0.0.15 Jul 2013
  2. 1.0.014 Mar 2015
  3. 2.0.021 Jan 2016
  4. 3.0.07 Jan 2017
  5. 4.0.07 Jan 2017
  6. 5.0.029 Jan 2018
  7. 6.0.02 Jun 2018
  8. 7.0.013 Mar 2019
  9. 8.0.02 May 2019
  10. 9.0.05 May 2021
  11. 10.0.021 May 2021
  12. 11.0.011 Jan 2022
  13. 12.0.014 Jan 2022
  14. 13.0.016 Jan 2022
  15. 14.0.017 Jan 2022
  16. 15.0.031 Jan 2022
  17. 16.0.02 Feb 2022
  18. 17.0.027 Jun 2025
  19. 18.0.017 Sept 2026
Last 5 releases
  1. 18.0.322 Sept 2026
  2. 18.0.221 Sept 2026
  3. 18.0.118 Sept 2026
  4. 18.0.017 Sept 2026
  5. 17.4.212 Apr 2026
104 releases in total, 11 in the last 12 months

@dotenvx/dotenvx

Major versions
  1. 0.2.2321 Nov 2023
  2. 1.0.024 Jun 2024
  3. 2.0.030 Jun 2026
Last 5 releases
  1. 2.30.022 Sept 2026
  2. 2.29.021 Sept 2026
  3. 2.28.220 Sept 2026
  4. 2.28.119 Sept 2026
  5. 2.28.016 Sept 2026
351 releases in total, 119 in the last 12 months
dotenv

-

@dotenvx/dotenvx

-

dotenv

-

@dotenvx/dotenvx

-

  • Need no runtime dependenciesdotenv (dotenv has 0, @dotenvx/dotenvx has 6)
  • Module formatBoth CommonJS
  • Need TypeScript types in the package itselfBoth
  • Node.js version requirementdotenv: >=12; @dotenvx/dotenvx: none declared (engines field in package.json)
  • Higher weekly npm downloadsdotenv (130.9m vs 8.8m)
  • Licensedotenv: BSD-2-Clause; @dotenvx/dotenvx: BSD-3-Clause

Each line is generated from the data above.

Indexability: Indexed.