is-browser-env
TypeScript icon, indicating that this package has built-in type declarations

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.0.0
    1

Package Sidebar

Install

npm i is-browser-env

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

5.4 kB

Total Files

12

Last publish

Collaborators

  • cezaraugusto