# browser-which

> Get the current browser

Latest version **1.1.1** (published 2025-08-05) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2025-08-05 |
| First published | 2020-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kingller Tang |
| Maintainers | kingller |
| Keywords | browser, which |

## Links

- npm: https://www.npmjs.com/package/browser-which
- Repository: https://github.com/kingller/browser-which
- Issues: https://github.com/kingller/browser-which/issues
- npm.io page: https://npm.io/package/browser-which

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2025-08-05
- 1.1.0 — 2020-07-21
- 1.0.0 — 2020-07-17

## README

# browser-which
Get the current browser.
Use feature detection instead as possible.

## Install

```bash
npm install browser-which
``` 

## Usage

```
import browser from 'browser-which';

browser.ie // 判断是否 IE 浏览器
browser.edge // 判断是否 Edge 浏览器
browser.firefox // 判断是否 firefox 浏览器
browser.opera // 判断是否 opera 浏览器
browser.chrome // 判断是否 chrome 浏览器
browser.safari // 判断是否 safari 浏览器
```

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