Skip to content
JS
Package

dotenv-safe

Load environment variables from .env and ensure they are defined

v9.1.0, 26 Feb 2024MITCommonJSTypes: NoneConfigurationNode.js utilities
$ npm install dotenv-safe

Key numbers

As of 25 Sept 2026
Weekly downloads
192.3k
+16% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 years ago
v9.1.0
GitHub stars
766
93 forks
Open issues / PRs
0 / 4
Contributors
-
Commits, last 52 weeks
1

Downloads

Last week 2026-09-15 to 2026-09-21
0100k200k300kSept 2025Mar 2026Sept 2026High 271.3k (25 Aug 2026)Low 96k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

192,342 downloads last week, 920,897 in the last month. The 12-month change of +16% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
9.1.0, 26 Feb 20242 years ago
First published
-
Last push to GitHub
21 Jan 2026246 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
4
Commits, last 52 weeks
1
Dependents on npm
341

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
10 kB
Dependencies (0)
None
Peer dependencies (1)
dotenv
npm install dotenv-safe
  • jsDelivrhttps://cdn.jsdelivr.net/npm/dotenv-safe@9.1.0/
  • unpkghttps://unpkg.com/dotenv-safe@9.1.0/
  • esm.shhttps://esm.sh/dotenv-safe@9.1.0
PackageWeekly downloadsGzipLast releaseModuleComparison
dotenv-json72.9k-8 years agoCommonJS-
update-dotenv68.6k-7 years agoCommonJS-
dotenv-extended31.6k-7 months agoCommonJS-
ember-cli-dotenv14k-2 years ago--
rollup-plugin-dotenv10.7k-2 years agoESM + CommonJS-
edit-dotenv8.3k-9 years ago--
@dotenvx/primitives4m-2 days agoCommonJS-
lazy-universal-dotenv1.3m-3 years ago--
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.