# is-browser

> Test whether you're a component in browser or a package in npm

Latest version **2.1.0** (published 2018-09-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-browser
pnpm add is-browser
yarn add is-browser
bun add is-browser
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2018-09-11 |
| First published | 2012-12-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 28 |
| Author | ForbesLindesay |
| Maintainers | forbeslindesay |

## Links

- npm: https://www.npmjs.com/package/is-browser
- Repository: https://github.com/ForbesLindesay/is-browser
- Homepage: https://github.com/ForbesLindesay/is-browser#readme
- Issues: https://github.com/ForbesLindesay/is-browser/issues
- npm.io page: https://npm.io/package/is-browser

## Recent versions

- 2.1.0 (latest) — 2018-09-11
- 2.0.1 — 2014-07-25
- 2.0.0 — 2013-02-23
- 1.0.0 — 2012-12-23

## README

# 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`:

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

## License

MIT

---
_Source: https://npm.io/package/is-browser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
