2.0.0 • Published 4 months ago

browsermob-proxy-api-client v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

BrowserMob Proxy API Client

Client library for BrowserMob Proxy API

Refer to REST API section of BrowserMob Proxy documentation for detailed information

npm install size npm bundle size npm downloads Known Vulnerabilities Coverage

Installing

Using npm:

$ npm install browsermob-proxy-api-client

Using yarn:

$ yarn add browsermob-proxy-api-client

Example

import BrowserMobProxyAPIClient from 'browsermob-proxy-api-client';

const proxy = new BrowserMobProxyAPIClient('localhost', '8080');
const port = await proxy.start();
if (port) {
  try {
    await proxy.startHar(port);
    // exec `curl google.com --proxy localhost:${port}`
    const har = await proxy.getHar(port);
  } catch (e) {
    console.error(e);
  } finally {
    await proxy.stop(port);
  }
}
2.0.0

4 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago