Package
environment
Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc
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
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
- v1 first release 1.0.0, 28 Apr 2024
- v0 first release 0.0.1, 27 Jun 2012
Recent releases
| Version | Published |
|---|---|
| 1.1.0 | 14 May 2024 |
| 1.0.0 | 28 Apr 2024 |
| 0.0.2 | 28 Jun 2012 |
| 0.0.1 | 27 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- jsDelivr
https://cdn.jsdelivr.net/npm/environment@1.1.0/ - unpkg
https://unpkg.com/environment@1.1.0/ - esm.sh
https://esm.sh/environment@1.1.0
Indexability: Indexed.