ua-parser
Installation
$ npm install ua-parser
Example
const parse = ;const ua = ; // [// {// "ProductName": "Mozilla",// "ProductVersion": "5.0",// "SystemInformation": {// "Platform": "iPhone",// "ReleaseVersion": "CPU iPhone OS 9_2_1 like Mac OS X",// "_": []// }// },// {// "ProductName": "AppleWebKit",// "ProductVersion": "601.1.46",// "SystemInformation": {// "Platform": "KHTML, like Gecko",// "_": []// }// },// {// "ProductName": "Mobile",// "ProductVersion": "13D15",// "SystemInformation": ""// },// {// "ProductName": "MicroMessenger",// "ProductVersion": "6.3.9",// "SystemInformation": ""// },// {// "ProductName": "NetType",// "ProductVersion": "WIFI",// "SystemInformation": ""// },// {// "ProductName": "Language",// "ProductVersion": "zh_CN",// "SystemInformation": ""// }// ]
Contributing
- Fork this Repo first
- Clone your Repo
- Install dependencies by
$ npm install
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3
ISC
This work is licensed under the ISC license.