in-browser
v1.0.1
Published
check if you're currently in a browser (as opposed to being in node)
Downloads
7
Readme
check if you're currently in a browser (as opposed to being in node)
intalling
npm i in-browser
usage
var in_browser = require('in-browser');
if (in_browser) {
// code for clients only
} else {
// code for servers only
}