1.0.18 • Published 2 years ago

chromium-detector v1.0.18

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
2 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

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.11

3 years ago

1.0.12

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago