{"library":"browserslist-useragent","type":"library","category":null,"description":"browserslist-useragent is a utility library designed to determine if a given browser user agent string satisfies a specified browserslist query. The current stable version, 4.0.0, marks a significant rewrite in TypeScript and a switch from the 'useragent' parsing library to 'ua-parser-js', which may introduce subtle differences in how user agents are classified. This library seamlessly integrates with existing browserslist configurations found in project files like `.browserslistrc` or `package.json`, but also provides options for explicitly defining browser queries. It supports a comprehensive range of popular browsers, including Chrome, Firefox, Safari, Edge, and Internet Explorer, offering granular control over version matching through options like ignoring patch or minor versions, or allowing higher versions than specified. While there isn't a fixed release cadence, updates are regularly issued to incorporate bug fixes, add support for new browsers, and improve the underlying parsing logic.","language":"javascript","status":"active","version":"4.0.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install browserslist-useragent","imports":["import { matchesUA } from 'browserslist-useragent';","import type { BrowserslistUseragentOptions } from 'browserslist-useragent';","const { matchesUA } = require('browserslist-useragent');"]},{"cmd":"yarn add browserslist-useragent","imports":[]},{"cmd":"pnpm add browserslist-useragent","imports":[]}],"homepage":null,"github":"https://github.com/pastelsky/browserslist-useragent","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/browserslist-useragent","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/browserslist-useragent/compatibility"}}