GoScrobble/web/node_modules/is-in-browser
2022-04-25 14:48:54 +12:00
..
dist 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
src 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
test 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
.babelrc 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
.eslintrc 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
.npmignore 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
package.json 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00
readme.md 0.2.0 - Mid migration 2022-04-25 14:48:54 +12:00

Is In Browser?

import isBrowser from 'is-in-browser';

if(isBrowser) {
    //...
}

CommonJS

For those not using Babel / ES6 Modules

var isBrowser = require('is-in-browser').default;

if(isBrowser) { //... }