0.2.0 • Published 6 years ago
@paguro/browser-detection v0.2.0
Paguro's Browser Detection 
JavaScript library for detecting browsers and platforms using feature testing.
Accurate: it doesn't rely on the User-Agent string like other libraries [1] [2].
Solid: it's tested against a large dataset of Browser Object Model (BOM).
Getting started
To add Paguro's Browser Detection library to your project:
$ yarn add @paguro/browser-detectionUsage
import BrowserDetection from '@paguro/browser-detection'; // ES6
const detectedBrowser = BrowserDetection();
console.log(detectedBrowser);
/* -- Output
{
browser: 'Firefox',
browserVersion: 67,
layout: 'Gecko',
layoutVersion: 67,
os: 'Windows',
osVersion: 95
}
*/Detection
Browsers
| Browser | Latest version |
|---|---|
| Internet Explorer | 11 |
| Edge | 44 / 80 |
| Chrome | 40 / 80 |
| Chromium | 40 / 80 |
| Firefox | 74 |
| Safari | 13 |
| Opera | 66 |
| Brave | 1.3 |
Layout engines
| Browser | Latest version |
|---|---|
| Trident | - |
| EdgeHTML | - |
| Gecko | - |
| WebKit | - |
| Blink | - |
| KHTML | - |
| Presto | - |
Operating systems
| Browser | Latest version |
|---|---|
| OS X | - |
| Windows | - |
| Linux | - |
| Unix | - |
| Solaris | - |
| iOS | - |
| Android | - |
Known bugs and issues
- The fields
layoutVersionandosVersionare not populated yet
Roadmap for Release 0.2.0
- Support for mobile browsers (most popular ones)
- Populate the field
layoutVersion - Populate the field
osVersion - Sandbox to prevent feature spoofing
Authors
See also the list of contributors who participated in this project.
License
Paguro's Browser Detection is MIT licensed.
0.2.0
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.1.0-alpha3
6 years ago
0.1.0-alpha2
6 years ago
0.1.0-alpha1
6 years ago