client-info

0.0.5 • Public • Published

client-info

NPM version

Packageclient-info
Description Get client information, include os, browser, browser-shell, app wrap.

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'
 

LICENSE MIT

Readme

Keywords

Package Sidebar

Install

npm i client-info

Weekly Downloads

5

Version

0.0.5

License

MIT

Unpacked Size

5.47 kB

Total Files

5

Last publish

Collaborators

  • dionren