/browser-info

Lightweight lib to quickly get browser info

Primary LanguageJavaScriptMIT LicenseMIT

browser-info

Build Status NPM version

Information

Packagebrowser-info
Description Get browser info

Usage

Install

$ npm install --save-dev browser-info

Example

var browserInfo = require('browser-info');

// on Browser
browserInfo();
 // => {name: 'Chrome', version: '42', fullVersion: '42.1246.0.12', os: 'Linux'}

// on Server
browserInfo(req.headers['user-agent']);
 // => same info

PRs welcome for additional features

LICENSE MIT