# ua-is-frozen

> A freeze-test for your user-agent string

Latest version **0.1.2** (published 2024-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install ua-is-frozen
pnpm add ua-is-frozen
yarn add ua-is-frozen
bun add ua-is-frozen
```

## Health

**Score 45/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; has provenance; high quality score.

Warnings: low downloads; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2024-11-07 |
| First published | 2023-09-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1 |
| Author | Faisal Salman |
| Maintainers | faisalman |
| Keywords | ua-parser-js, ua-is-frozen, user-agent, frozen, reduced |

## Links

- npm: https://www.npmjs.com/package/ua-is-frozen
- Repository: https://github.com/faisalman/ua-is-frozen
- Homepage: https://github.com/faisalman/ua-is-frozen#readme
- Issues: https://github.com/faisalman/ua-is-frozen/issues
- Funding: https://github.com/sponsors/faisalman
- npm.io page: https://npm.io/package/ua-is-frozen

## Recent versions

- 0.1.2 (latest) — 2024-11-07
- 0.1.1 — 2023-09-08
- 0.1.0 — 2023-09-05

## README

# ua-is-frozen
A freeze-test for your user-agent string

```sh
npm i ua-is-frozen
```

### * `isFrozenUA(ua:string):boolean`

Check whether a user-agent string match with [frozen user-agent pattern](https://www.chromium.org/updates/ua-reduction/)

## Code Example

```js
import { isFrozenUA } from 'ua-is-frozen';

const oldChrome = "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.1234.56 Safari/537.36"
const newChrome = "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.0.0 Mobile Safari/537.36";
const firefox = "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0";

console.log(isFrozenUA(oldChrome)); // false
console.log(isFrozenUA(newChrome)); // true
console.log(isFrozenUA(firefox));   // false
```

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