Node User Agent Parse
Very simple, no deps user agent string parser.
Overview
Parse user agents a bit like PHP's get_browser(). Rudimentary but it works.
Example Usage
const userAgent = ;userAgent;// => { name: 'safari', version: '4.0dp1', os: 'Windows XP', full: '... same string as above ...', device_type:'desktop' }
Tests
See /test/test.js
for a simple suite
Credits
Heavily based on (blatantly ripped from ahem) https://github.com/soldair/node-ua-device-type and https://github.com/jujhars13/node-user-agent-parse
License
License is MIT, go nuts.