Skip to content

oprypkhantc/ua-regexes-lite

 
 

Repository files navigation

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

About

A lite useragent regexes collection.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%