The `ua-is-frozen` package provides a lightweight, focused utility function, `isFrozenUA`, designed to detect if a given user-agent (UA) string conforms to the "frozen" or "reduced" patterns enforced by modern browsers, particularly in response to initiatives like Chromium's User-Agent Reduction. It helps developers identify whether a UA string has been intentionally simplified or obscured by the browser to limit fingerprinting. Currently at version 0.1.2, this library is a specific-purpose tool, not a comprehensive UA parser. Its release cadence is expected to be infrequent, primarily aligning with significant changes in browser UA policies rather than regular feature cycles. Key differentiators include its single responsibility, direct boolean output, and lightweight footprint, offering a simple programmatic check for a complex and evolving web standard without the overhead of full UA string analysis. It ships with TypeScript types, facilitating its use in modern JavaScript projects.
npm install ua-is-frozenVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to use `isFrozenUA` to test various user-agent strings against the frozen UA pattern, showing examples of both frozen and unfrozen UAs.
Ensure the `ua-is-frozen` package is regularly updated to incorporate the latest browser UA freezing patterns and maintain accurate detection.
If you need detailed information beyond the freeze status, use `ua-is-frozen` in conjunction with a comprehensive user-agent parsing library (e.g., `ua-parser-js`).
Thoroughly test with a wide range of your target user-agent strings, especially for less common browsers or specific mobile devices, to confirm expected behavior.
Ensure `ua-is-frozen` is installed (`npm install ua-is-frozen`) and imported using `import { isFrozenUA } from 'ua-is-frozen';`.Verify your module system configuration. For ESM, use `import { isFrozenUA } from 'ua-is-frozen';`. If in a CommonJS environment, ensure your bundler or Node.js version supports ESM modules or use dynamic import.Always ensure the argument provided to `isFrozenUA` is a valid user-agent string (e.g., `isFrozenUA(myUserAgentString)`).
No dependency data recorded yet.