node package manager

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!");
}