Minimal utilties for parsing the version number of chromium based browsers.
const currentVersion = chromiumVersion.fromUserAgent() // => "91.0.4460.0"
chromiumVersion.is(currentVersion).newerThan("88.0.4298.0") // => true
chromiumVersion.fromUserAgent()
// => "91.0.4460.0"
chromiumVersion.fromString('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/88.0.4298.0 Safari/537.36')
// => "88.0.4298.0"
chromiumVersion.semver('91.0.4460.0')
// => {major: 91, minor: 0, build: 4460, patch: 0}
chromiumVersion.is("91.0.4460.0").newerThan("91.1")
// => false
chromiumVersion.is("91.0.4460.0").newerThan("91.0.4460.0")
// => false
chromiumVersion.is("91.0.4460.0").newerEqualThan("91.0.4460.0")
// => true