Skip to content
JS
Package

getenv

Get and typecast environment variables.

v2.0.0, 6 May 2025MITCommonJSTypes: NoneConfiguration
$ npm install getenv

Key numbers

As of 25 Sept 2026
Weekly downloads
9.3m
+291% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
1 year ago
v2.0.0
GitHub stars
64
15 forks
Open issues / PRs
0 / 1
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
05m10m15mSept 2025Mar 2026Sept 2026High 12.5m (25 Aug 2026)Low 1.8m (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.

9,311,405 downloads last week, 46,027,223 in the last month. The 12-month change of +291% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
09 in total
Latest version
2.0.0, 6 May 20251 year ago
First published
17 Apr 2012
Last push to GitHub
6 May 2025506 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
1
Commits, last 52 weeks
0
Dependents on npm
230

Major versions

  1. v2 first release 2.0.0, 6 May 2025
  2. v1 first release 1.0.0, 9 Oct 2019
  3. v0 first release 0.1.0, 17 Apr 2012

Recent releases

VersionPublished
2.0.06 May 2025
1.0.09 Oct 2019
0.7.06 Oct 2016
0.6.011 Jan 2016
0.5.012 Dec 2014
0.4.024 Nov 2014
0.3.015 Aug 2012
0.2.025 Apr 2012
0.1.017 Apr 2012
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=6
Runtimes
-
Unpacked size (npm)
11 kB
Dependencies (0)
None
npm install getenv
  • jsDelivrhttps://cdn.jsdelivr.net/npm/getenv@2.0.0/
  • unpkghttps://unpkg.com/getenv@2.0.0/
  • esm.shhttps://esm.sh/getenv@2.0.0
PackageWeekly downloadsGzipLast releaseModuleComparison
config1.2m-1 month ago--
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.