npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

ot-wpt

0.3.4 • Public • Published

ot-wpt Build Status

Initiates a run on a given webpagetest instance and logs to hipchat, statsd, and logstash.

Installation

$ npm install ot-wpt --save-dev

Usage

var wpt = require('ot-wpt');
 
wpt({
  testUrl: 'http://google.com',
  apiKey: 'API_KEY_HERE',
  // These options are passed through to the webpagetest-api module
  wpt: {
    runs: 1,
    location: 'Dulles:Chrome'
  },
  // Below options are optional
  instanceUrl: 'www.webpagetest.org',
  hipchat: {
    apiKey: 'API_KEY_HERE',
    roomId: 12345
  },
  logstash: {
    host: 'localhost',
    port: 6379
  },
  statsd: {
    host: 'localhost',
    port: 8125,
    prefix: 'PREFIX_HERE'
  }
}, function(error) {
  // Test finished
  // error is null if there's no error
});

install

npm i ot-wpt

Downloadsweekly downloads

12

version

0.3.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability