ua-regexes-lite
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i ua-regexes-lite

Weekly Downloads

81,009

Version

1.2.1

License

MIT

Unpacked Size

8.29 kB

Total Files

5

Last publish

Collaborators

  • dangreen