Detect user-agent
A small user-agent detection library (1 kB).
Is able to differentiate between mobile, tablet and desktop devices and finds your browser name and version.
Installation
Make sure you have Node.js installed.
$ npm install detect-ua
Usage
import { DetectUA } from 'detect-ua';
const device = new DetectUA();
console.log(device.browser);
console.log(device.isMobile);
console.log(device.isTablet);
console.log(device.isDesktop);
console.log(device.isAndroid);
console.log(device.isiOS);
Development
$ yarn start
$ yarn lint
$ yarn test
$ yarn build
Licence
My work is released under the MIT license.