1.0.0 • Published 4 years ago

modernizr-useragents v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Modernizr User-Agent Tests

Add simple user-agent checks as Modernizr tests.

:warning: The checks in this package are meant for light-weight corrections to browser engines' rendering quirks. They are too simple and unreliable for critical feature checks.

Installation

npm install modernizr-useragents

Usage

Add specific tests

import addUserAgentTests from 'modernizr-useragents'

addUserAgentTests(['firefox', 'safari'])

Add all available tests

import { addAllUserAgentTests } from 'modernizr-useragents'

addAllUserAgentTests()

Tests

The following tests are available:

NameTest
msMicrosoft browsers: IE & pre-chromium Edge
ipadSafari on iPadOS
iphoneSafari on iOS
ipodSafari on iPods' iOS
iosEither ipad, iphone or ipod
safariSafari, desktop or phone
firefoxFirefox

License

MIT License © Philipp Daun