Socket
Book a DemoInstallSign in
Socket

ot-wpt

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ot-wpt

Submits webpagetest results to hipchat, statsd, and logstash

latest
Source
npmnpm
Version
0.3.4
Version published
Weekly downloads
3
-72.73%
Maintainers
1
Weekly downloads
 
Created
Source

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
});

Keywords

opentable

FAQs

Package last updated on 11 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts