is-browser
v2.1.0
Published
Test whether you're a component in browser or a package in npm
Downloads
1,896,592
Readme
is-browser
Test whether you're running on the server or in the browser (using browserify)
Installation
$ npm install is-browserAPI
This simply exports true or false:
if (require('is-browser')) {
console.log('The module was installed using component');
} else {
console.log('The module was installed using npm');
}License
MIT
