# node-uap

> Wrapper around ua-parser/uap-core and ua-parser/uap-ref-impl

Latest version **0.0.3** (published 2016-02-16) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install node-uap
pnpm add node-uap
yarn add node-uap
bun add node-uap
```

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-02-16 |
| First published | 2015-04-13 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | fedot |

## Links

- npm: https://www.npmjs.com/package/node-uap
- Repository: https://github.com/fedot/node-uap
- Issues: https://github.com/fedot/node-uap/issues
- npm.io page: https://npm.io/package/node-uap

## Dependencies (3)

- [uap-core](https://npm.io/package/uap-core.md) git://github.com/ua-parser/uap-core.git
- [yamlparser](https://npm.io/package/yamlparser.md) 0.0.2
- [uap-ref-impl](https://npm.io/package/uap-ref-impl.md) 0.2.0

## Recent versions

- 0.0.3 (latest) — 2016-02-16
- 0.0.2 — 2015-10-07
- 0.0.1-c — 2015-04-18
- 0.0.1-b — 2015-04-13
- 0.0.1 — 2015-04-13

## README

This is a wrap-up of https://github.com/ua-parser/uap-core and https://github.com/ua-parser/uap-ref-impl

#### Why?
At the moment `uap-ref-impl` repository contains only reference implementation without data required to use the parser and the `uap-core` repository isn't published to npm registry.

#### Usage:

    var uap = require('node-uap');
    var userAgentString = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36";

    // Parse everything
    console.log(uap.parse(userAgentString));

    // Parse specific info
    console.log(uap.parseUA(userAgentString));
    console.log(uap.parseOS(userAgentString));
    console.log(uap.parseDevice(userAgentString));

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