How to use the browsertime/package.json.version function in browsertime

To help you get started, we’ve selected a few browsertime examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sitespeedio / sitespeed.io / lib / util / util.js View on Github external
function(err, results) {
          if (err) {
            log.error('Error getting versions: %s', inspect(err));
            return cb(err);
          }

          var osVersion = os.platform() + ' ' + os.release();
          var headlessVersion = results[0];
          var javaVersion = results[1];
          var headlessName = config.headless === 'slimerjs' ? 'SlimerJS' : 'PhantomJS';

          log.info(
            'OS: \'%s\', Node.js: \'%s\', sitespeed.io: \'%s\', %s: \'%s\', java: \'%s\', browsertime: \'%s\'',
            osVersion, process.version, sitespeedVersion, headlessName, headlessVersion, javaVersion, browserTimeVersion);
          return cb();
        });

browsertime

Get performance metrics from your web page using Browsertime.

Apache-2.0
Latest version published 2 days ago

Package Health Score

81 / 100
Full package analysis

Similar packages