node package manager
Stop writing boring code. Discover, share, and reuse 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!");
}