Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 13 days 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 (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-15T13:20:38.000Z (almost 5 years ago)
- Last Synced: 2024-12-15T05:32:38.545Z (19 days 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: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Written in TypeScript](https://img.shields.io/badge/TypeScript-100%25-blue.svg)](https://github.com/cezaraugusto/is-browser-env) [![npm](https://img.shields.io/npm/v/is-browser-env.svg)]() [![Build Status](https://travis-ci.org/cezaraugusto/is-browser-env.svg?branch=master)](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.