client-info
v0.0.5
Published
Get client information, include os, browser, browser-shell, app
Downloads
12
Readme
client-info
Usage
Install
$ npm install --save client-info
Example
let clientInfo = require('client-info');
clientInfo.getBrowser()
// => {arch:'x86', os:'Linux', name:'Chrome', version:'42', fullVersion:'42.1246.0.12'}
clientInfo.getEnv()
// => 'weixin' or 'browser' or 'alipay'