Neurotic Pumpkin Murderer
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

is-browser

2.1.0 • Public • Published

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:

if (require('is-browser')) {
  console.log('The module was installed using component');
} else {
  console.log('The module was installed using npm');
}

License

MIT

Keywords

none

install

npm i is-browser

Downloadsweekly downloads

25,935

version

2.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability