npm

Need private packages and team management tools?Check out npm Orgs. »

is-browser-env

1.0.1 • Public • Published

Written in TypeScript npm Build Status

TypeScript module with type definition support by default. Also works with other JavaScript projects.

is-browser-env

Checks whether or not the current runtime environment is a browser.

Useful when

You want to check if a given condition needs to have browser support.

Installation

$ npm i is-browser-env

Usage

import isBrowserEnv from 'is-browser-env'
 
if (isBrowserEnv) {
  // ...
}

License

is-browser-env © 2018 Cezar Augusto. Released under the MIT License.

install

npm i is-browser-env

Downloadsweekly downloads

2

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability