Skip to content
JS
Package

env-var

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

v7.5.0, 20 May 2024MITCommonJSTypes: BundledConfigurationNode.js utilities
$ npm install env-var

Key numbers

As of 25 Sept 2026
Weekly downloads
618.2k
+144% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 years ago
v7.5.0
GitHub stars
625
37 forks
Open issues / PRs
6 / 2
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
01m2m3mSept 2025Mar 2026Sept 2026High 2.5m (16 Jun 2026)Low 167.1k (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.

618,189 downloads last week, 3,554,160 in the last month. The 12-month change of +144% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
047 in total
Latest version
7.5.0, 20 May 20242 years ago
First published
15 Apr 2016
Last push to GitHub
1 Sept 202623 days before the snapshot
Repository archived
No
Open issues
6
Open pull requests
2
Commits, last 52 weeks
0
Dependents on npm
459

Major versions

  1. v7 first release 7.0.0, 11 Nov 2020
  2. v6 first release 6.0.0, 12 Feb 2020
  3. v5 first release 5.0.0, 14 Jun 2019
  4. v4 first release 4.0.0, 9 Apr 2019
  5. v3 first release 3.0.0, 14 Oct 2017
  6. v2 first release 2.0.0, 31 Jul 2016
  7. v1 first release 1.0.0, 15 Apr 2016

Recent releases

VersionPublished
7.5.020 May 2024
7.4.29 May 2024
7.4.128 Aug 2023
7.4.021 Aug 2023
7.3.124 Apr 2023
7.3.06 Sept 2022
7.2.031 Aug 2022
7.1.129 Oct 2021
7.1.028 Oct 2021
7.0.116 May 2021
7.0.011 Nov 2020
6.3.027 Jul 2020
6.2.012 Jun 2020
6.1.124 Apr 2020
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=10
Runtimes
-
Unpacked size (npm)
42 kB
Dependencies (0)
None
npm install env-var
  • jsDelivrhttps://cdn.jsdelivr.net/npm/env-var@7.5.0/
  • unpkghttps://unpkg.com/env-var@7.5.0/
  • esm.shhttps://esm.sh/env-var@7.5.0
PackageWeekly downloadsGzipLast releaseModuleComparison
ts-dotenv23.2k-3 years agoCommonJS-
envfile83.7k-2 years agoESM + CommonJS-
config-dug7.8k-2 months agoCommonJS-
zod-config7.7k-10 months agoESM + CommonJS-
@proload/core20k-4 years agoESM + CommonJS-
auto-config-loader82.2k-6 months agoESM + CommonJS-
typed-env11.4k-1 year agoESM + CommonJS-
dotenv130.9m-2 days agoCommonJSdotenv vs env-var

Related

Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.