$ npm install 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!");
}
© 2010 - cnpmjs.org x YWFE | Home | YWFE