{"library":"browserslist-useragent-regexp","type":"library","category":null,"description":"browserslist-useragent-regexp is a utility that compiles a `browserslist` query into a JavaScript regular expression, enabling client-side user agent detection. This allows developers to determine if a browser supports a given `browserslist` configuration directly in the browser, without server-side checks. It is currently at version 4.1.4 and receives active maintenance, with frequent bug fixes and minor feature releases. Key differentiators include its direct integration with `browserslist` for consistent browser targeting across toolchains and its ability to generate optimized regex patterns. Since version 4.0.0, it is an ESM-only package and requires Node.js >= 14. This library is particularly useful for conditional loading of polyfills or different JavaScript bundles based on client-side browser capabilities.","language":"javascript","status":"active","version":"4.1.4","tags":["javascript","browserslist","useragent","regexp","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install browserslist-useragent-regexp","imports":["import { browserslistUseragentRegexp } from 'browserslist-useragent-regexp';","import supportedBrowsersRegex from './supportedBrowsers.js';","import type { Options } from 'browserslist-useragent-regexp';"]},{"cmd":"yarn add browserslist-useragent-regexp","imports":[]},{"cmd":"pnpm add browserslist-useragent-regexp","imports":[]}],"homepage":null,"github":"https://github.com/browserslist/browserslist-useragent-regexp","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/browserslist-useragent-regexp","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-regexp/compatibility"}}