node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

is-node

Detect if current process is a node application or not.

Is Node?

Detects if the current process is a node application or not.

$ npm install is-node

var isNode = require('is-node');
 
if (isNode) {
  console.log("Hey, I'm a node process!");
}