client-info

Get client information, include os, browser, browser-shell, app

Usage no npm install needed!

<script type="module">
  import clientInfo from 'https://cdn.skypack.dev/client-info';
</script>

README

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