https://github.com/cezaraugusto/is-browser-env
Checks whether or not the current runtime environment is a browser.
https://github.com/cezaraugusto/is-browser-env
is-browser is-browser-env is-node npm-module
Last synced: 5 months ago
JSON representation
Checks whether or not the current runtime environment is a browser.
- Host: GitHub
- URL: https://github.com/cezaraugusto/is-browser-env
- Owner: cezaraugusto
- License: mit
- Created: 2019-01-26T04:50:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-15T13:20:38.000Z (over 6 years ago)
- Last Synced: 2025-11-04T08:21:31.200Z (8 months ago)
- Topics: is-browser, is-browser-env, is-node, npm-module
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/is-browser-env
- Size: 297 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/cezaraugusto/is-browser-env) []() [](https://travis-ci.org/cezaraugusto/is-browser-env)
> 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
```sh
$ npm i is-browser-env
```
## Usage
```js
import isBrowserEnv from 'is-browser-env'
if (isBrowserEnv) {
// ...
}
```
## License
is-browser-env © 2018 [Cezar Augusto](https://twitter.com/cezaraugusto). Released under the MIT License.