Name Last Update
..
.npmignore Loading commit data...
LICENSE Loading commit data...
client.js Loading commit data...
package.json Loading commit data...
readme.md Loading commit data...
server.js Loading commit data...

is-browser

Test whether you're running on the server or in the browser (using browserify)

Installation

$ npm install is-browser

API

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