JSPM

chrome-version

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1792
  • Score
    100M100P100Q126791F
  • License MIT

Detect the current chrome version in the browser

Package Exports

  • chrome-version

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (chrome-version) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

chrome-version

Detect the chrome version in the browser

Install

$ npm install --save chrome-version

Usage

var chromeVersion = require('chrome-version')

chromeVersion('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36')
//=> 54

API

chromeVersion(agent) -> Number

Returns a Number with the chrome version number.

agent

Required Type: string

A user agent string from the browser.

License

MIT © Jack Hanford