detect-is-node

1.0.3 • Public • Published

you can use this module to detect if your code is running on node server.

E.g. var isNode = require('detect-is-node');

install

npm install --save detect-is-node

Usage:

var isNode = require('detect-is-node');
 
if (isNode()) {
  console.log("Running under node Environment");
} else {
  console.log("Running in browser");
}

Readme

Keywords

Package Sidebar

Install

npm i detect-is-node

Weekly Downloads

134

Version

1.0.3

License

MIT

Last publish

Collaborators

  • abhirathore2006