Skip to content

abhirathore2006/detect-is-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Detect Is Node

You can use this module to detect if your code is running in the browser or on a Node.JS server.

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

About

check if running under node environment or browser

Resources

Stars

Watchers

Forks

Packages

No packages published