ua-regexes-lite

A lite useragent regexes collection.


Keywords
useragent, regex, regexp
License
MIT
Install
npm install ua-regexes-lite@1.2.1

Documentation

ua-regexes-lite

ESM-only package NPM version Node version Install size Build status

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