Skip to content
JS
Package

detect-node

Detect Node.JS (as opposite to browser environment) (reliable)

v2.1.0, 16 May 2021MITESM + CommonJSTypes: None
$ npm install detect-node

Key numbers

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

Downloads

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

22,910,884 downloads last week, 99,316,618 in the last month. The 12-month change of +39% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
08 in total
Latest version
2.1.0, 16 May 20215 years ago
First published
31 Jul 2014
Last push to GitHub
10 May 20221,598 days before the snapshot
Repository archived
No
Open issues
2
Open pull requests
1
Commits, last 52 weeks
0
Dependents on npm
865

Major versions

  1. v2 first release 2.0.0, 31 Jul 2014
  2. v1 first release 1.0.0, 31 Jul 2014

Recent releases

VersionPublished
2.1.016 May 2021
2.0.516 Mar 2021
2.0.431 Aug 2018
2.0.31 Aug 2014
2.0.231 Jul 2014
2.0.131 Jul 2014
2.0.031 Jul 2014
1.0.031 Jul 2014
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
2.7 kB
Dependencies (0)
None
npm install detect-node
  • jsDelivrhttps://cdn.jsdelivr.net/npm/detect-node@2.1.0/
  • unpkghttps://unpkg.com/detect-node@2.1.0/
  • esm.shhttps://esm.sh/detect-node@2.1.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.