Package Exports
- is-browser
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-browser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
is-browser
Test whether you're a component in browser or a package in npm
Installation
client:
$ component install ForbesLindesay/is-browserserver:
$ npm install is-browserAPI
This simply exports true or false:
if (require('is-browser')) {
console.log('The module was installed usign component');
} else {
console.log('The module was installed using npm');
}License
MIT