ua-regexes-lite
v1.2.1
Published
A lite useragent regexes collection.
Downloads
329,935
Readme
ua-regexes-lite
A lite useragent regexes collection.
Install
# pnpm
pnpm add ua-regexes-lite
# yarn
yarn add ua-regexes-lite
# npm
npm i ua-regexes-lite
Usage
import { regexes } from 'ua-regexes-lite';
/**
* @property {RegExp} regex - Regular expression to match user agent.
*/
regexes[0].regex
/**
* @property {string} family - caniuse-lite compatible browser family name.
*/
regexes[0].family
/**
* @property {[number, number, number]} [version] - Fixed browser version.
*/
regexes[0].version
/**
* @property {[number, number, number]} [minVersion] - Minimum browser version.
*/
regexes[0].minVersion
/**
* @property {[number, number, number]} [maxVersion] - Maximum browser version.
*/
regexes[0].maxVersion