@litejs/ua

Simple User-Agent parser


Keywords
user-agent, litejs
License
MIT
Install
npm install @litejs/ua@20.6.0

Documentation

@litejs/ua – test size

Simple User-Agent parser for statistical purposes in 2KB minified.

var ua = require("@litejs/ua").ua

ua("Mozilla/5.0 (Mobile; rv:18.1) Gecko/18.1 Firefox/18.1")
// {os:{name:"Firefox OS",ver:"1",full:"1.1"},browser:{name:"Firefox",ver:"18",full:"18.1"},device:"Mobile"}

External links

GitHub repo | npm package | Coveralls code coverage

Licence

Copyright (c) Lauri Rooden <lauri@rooden.ee>
The MIT License