Type definitions are available in the @types/detect-node package


  • Version 2.1.0
  • Published
  • 2.76 kB
  • No dependencies
  • MIT license


npm i detect-node
yarn add detect-node
pnpm add detect-node


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

Dependencies (0)

No dependencies.

Dev Dependencies (0)

No dev dependencies.

Peer Dependencies (0)

No peer dependencies.


To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/detect-node.

  • Markdown
  • HTML
    <a href="https://www.jsdocs.io/package/detect-node"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>