in-browser

1.0.1 • Public • Published

check if you're currently in a browser (as opposed to being in node)

intalling

npm i in-browser

usage

var in_browser = require('in-browser');
 
if (in_browser) {
    // code for clients only
} else {
    // code for servers only
}

Readme

Keywords

none

Package Sidebar

Install

npm i in-browser

Weekly Downloads

2

Version

1.0.1

License

none

Last publish

Collaborators

  • minond