You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
377 B
22 lines
377 B
# 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`:
|
|
|
|
```javascript
|
|
if (require('is-browser')) {
|
|
console.log('The module was installed using component');
|
|
} else {
|
|
console.log('The module was installed using npm');
|
|
}
|
|
```
|
|
|
|
## License
|
|
|
|
MIT
|
|
|