Skip to content
JS
Package

environment

Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc

v1.1.0, 14 May 2024MITESM onlyTypes: BundledScraping and browser automation
$ npm install environment

Key numbers

As of 25 Sept 2026
Weekly downloads
26.5m
+150% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
2 years ago
v1.1.0
GitHub stars
166
1 forks
Open issues / PRs
0 / 0
Contributors
-
Commits, last 52 weeks
1

Downloads

Last week 2026-09-15 to 2026-09-21
010m20m30m40mSept 2025Mar 2026Sept 2026High 37.7m (25 Aug 2026)Low 9.3m (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.

26,532,392 downloads last week, 134,367,522 in the last month. The 12-month change of +150% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
04 in total
Latest version
1.1.0, 14 May 20242 years ago
First published
27 Jun 2012
Last push to GitHub
18 Sept 20266 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
0
Commits, last 52 weeks
1
Dependents on npm
34

Major versions

  1. v1 first release 1.0.0, 28 Apr 2024
  2. v0 first release 0.0.1, 27 Jun 2012

Recent releases

VersionPublished
1.1.014 May 2024
1.0.028 Apr 2024
0.0.228 Jun 2012
0.0.127 Jun 2012
Module format
ESM onlyFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=18
Runtimes
-
Unpacked size (npm)
8.7 kB
Dependencies (0)
None
npm install environment
  • jsDelivrhttps://cdn.jsdelivr.net/npm/environment@1.1.0/
  • unpkghttps://unpkg.com/environment@1.1.0/
  • esm.shhttps://esm.sh/environment@1.1.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.