ua-is-frozen
npmv0.1.2TypeScriptA freeze-test for your user-agent string
Adopt with care
ua-is-frozen is usable, with caveats. Last published 671 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- CMaintenance: grade C, Fair — worth a look.
Last published 671 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 4.9 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding ua-is-frozen to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- No constraint declared
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the ua-is-frozen README.
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)); // falseua-is-frozen vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| ua-is-frozenthis page | 0 | 1 | MIT | 1 year ago |
| ua-parser-js | 0 | 1 | AGPL-3.0-or-later | 1 day ago |
| bowser | 0 | 1 | MIT | 1 day ago |
| detect-europe-js | 0 | 1 | MIT | 1 day ago |
| is-standalone-pwa | 0 | 1 | MIT | 1 day ago |
Dependencies
Declared by ua-is-frozen v0.1.2. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (2)
Used by
Popular packages that depend on ua-is-frozen.
Relationship graph
Dependencies (left) and dependents (right) of ua-is-frozen.
Frequently installed together
An AST-based pattern checker for JavaScript.
A JavaScript parser
A high-level API to automate web browsers
The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes
Detect if a user is from a country around the European Union (EU) area
Detect if PWA is running in standalone mode
Release history
No releases in the last two years, typically about 426 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 0.1.2latest | 1 year ago | 4.9 KB | MIT |
| 0.1.1 | 3 years ago | 4.8 KB | MIT |
| 0.1.0 | 3 years ago | 4.8 KB | MIT |
Overview
ua-is-frozen is an npm package that a freeze-test for your user-agent string. It has 1 known dependents in the graph. The latest version is 0.1.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need a freeze-test for your user-agent string and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
- Lean dependency tree (2 direct dependencies).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use ua-is-frozen?
ua-is-frozen is usable, with caveats. Last published 671 days ago.
How do I install ua-is-frozen?
Run `npm install ua-is-frozen` to add ua-is-frozen to your npm project.
What license is ua-is-frozen released under?
ua-is-frozen is distributed under the MIT license.
How popular is ua-is-frozen?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on ua-is-frozen.
Is ua-is-frozen still maintained?
The most recent release of ua-is-frozen (v0.1.2) was published 1 year ago.
Does ua-is-frozen run install scripts?
No. ua-is-frozen does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.