1.0.18 • Published 3 years ago

chromium-detector v1.0.18

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
3 years ago

chromium-detector

Use feature detection to work out the running version of Chromium. No more UserAgent hackery!

Demo

Head over to https://chromiumchecker.com.

Install

npm install chromium-detector

Features

  • Uses a known feature list to work out the running version of Chromium
  • Doesn't need to use the UserAgent or anything else that could be spoofed
  • Provides info on each feature detected for more comprehensive results

Usage

var chromiumDetector = require('chromium-detector')
console.log(chromiumDetector.getBrowserInfo())
/*
{
  isChromium: true,
  version: '89',
  couldBeOlder: false,
  couldBeNewer: false,
  tests: {
    "89": {
      pass: 0,
      result: true,
      tests: [...],
      releaseDate: "2021-03-02",
      isPreRelease: false
    }
  }
}
*/

API

getBrowserInfo()

Returns: object with the following...

  • isChromium: Boolean true/false whether this looks to be Chromium
  • version: String the chromium milestone version (e.g. 89) or 'unknown'
  • couldBeOlder: Boolean true/false if the detected version of Chromium could be older than what the library can detect (i.e. all tests failed)
  • couldBeNewer: Boolean true/false if the detected version of Chromium could be newer than what the library can detect (i.e. all tests passed)
  • tests: Object an object of test results for each version
1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.11

4 years ago

1.0.12

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago