node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

is-node

Is Node?

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

Install

$ npm install is-node

Usage

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