# @jarvisniu/ua

> Detect web environment by user agent

Latest version **0.1.1** (published 2019-05-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jarvisniu/ua
pnpm add @jarvisniu/ua
yarn add @jarvisniu/ua
bun add @jarvisniu/ua
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2019-05-17 |
| First published | 2019-05-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Jarvis Niu |
| Maintainers | jarvisniu |
| Keywords | user agent, ua |

## Links

- npm: https://www.npmjs.com/package/@jarvisniu/ua
- Repository: https://github.com/jarvisniu/ua
- Homepage: https://github.com/jarvisniu/ua#readme
- Issues: https://github.com/jarvisniu/ua/issues
- npm.io page: https://npm.io/package/@jarvisniu/ua

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2019-05-17
- 0.1.0 — 2019-05-11

## README

# ua

Detect web environment by user agent

## Usage

Install:

```bash
npm install @jarvisniu/ua
```

Import:

```js
import ua from '@jarvisniu/ua'
```

Use:

```js
ua.isWindows
// extending
ua.isOpera = ua.value.incluces('OPR/')
```

## API

### OS

- `isWindows`
- `isMacOS`
- `isLinux`
- `isUbuntu`
- `isAndroid`
- `isIOS`

### Kernel

- `isChrome`
- `isFirefox`
- `isSafari`
- `isEdge`
- `isIE`

### Platform

- `isElectron`
- `isDesktop`
- `isMobile`

### App

- `isWechat`
- `isAlipay`

## License

MIT

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