Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

engine-v8-version.js 547B

1234567891011121314151617181920
  1. var global = require('../internals/global');
  2. var userAgent = require('../internals/engine-user-agent');
  3. var process = global.process;
  4. var versions = process && process.versions;
  5. var v8 = versions && versions.v8;
  6. var match, version;
  7. if (v8) {
  8. match = v8.split('.');
  9. version = match[0] < 4 ? 1 : match[0] + match[1];
  10. } else if (userAgent) {
  11. match = userAgent.match(/Edge\/(\d+)/);
  12. if (!match || match[1] >= 74) {
  13. match = userAgent.match(/Chrome\/(\d+)/);
  14. if (match) version = match[1];
  15. }
  16. }
  17. module.exports = version && +version;