is-browser

Test whether you're a component in browser or a package in npm

npm install is-browser
2 downloads in the last day
78 downloads in the last week
228 downloads in the last month

is-browser

Test whether you're a component in browser or a package in npm

Installation

client:

$ component install ForbesLindesay/is-browser

server:

$ 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

npm loves you