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.
- Host: GitHub
- URL: https://github.com/litejs/ua
- Owner: litejs
- Created: 2020-05-28T10:01:06.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2023-04-20T08:33:28.000Z (about 3 years ago)
- Last Synced: 2025-03-19T22:13:33.535Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 59.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)