An open API service indexing awesome lists of open source software.

https://github.com/litejs/ua

Simple User-Agent parser for statistical purposes.
https://github.com/litejs/ua

Last synced: over 1 year ago
JSON representation

Simple User-Agent parser for statistical purposes.

Awesome Lists containing this project

README

          

[1]: https://badgen.net/coveralls/c/github/litejs/ua
[2]: https://coveralls.io/r/litejs/ua
[3]: https://badgen.net/packagephobia/install/@litejs/ua
[4]: https://packagephobia.now.sh/result?p=@litejs/ua
[5]: https://badgen.net/badge/icon/Buy%20Me%20A%20Tea/orange?icon=kofi&label
[6]: https://www.buymeacoffee.com/lauriro

User-Agent Parser – [![Coverage][1]][2] [![size][3]][4] [![Buy Me A Tea][5]][6]
=================

```javascript
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](https://github.com/litejs/ua) |
[npm package](https://npmjs.org/package/@litejs/ua) |
[Coveralls coverage](https://coveralls.io/github/litejs/ua) |
[Style Guide](https://github.com/litejs/litejs/wiki/Style-Guide) |
[Buy Me A Tea][6]

## Licence

Copyright (c) Lauri Rooden <lauri@rooden.ee>
[The MIT License](http://lauri.rooden.ee/mit-license.txt)