0.1.0 • Published 10 years ago

har-utils v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

node-har-utils

Utilities for .har file manipulation.

Installation:

npm install har-utils

Usage

var Har = require('har-utils');

Modify a har file (content passed as harString)

var har = new Har(harString)
  // filter hosts (regexp)
  .selectHost('mydomain\\.com')
  // replace cookie value
  .setCookies("cookieName1=value1;cookieName2=value2")
  // set (or replace) headers
  .setHeaders("headerName1=value1;headerName2=value2")
  // generate
  .toJSON();

Convert har file content to HTTP log entry

var har = new Har(harString).toLog();

harlog CLI: Generate log file from .har file(s)

$ harlog --help
Usage:
  harlog [OPTIONS] <file.har>

Options:
  -h, --host STRING      Host Filter (only include matching entries)
  -v, --verbose          Produce more verbose output

hawk CLI: Prepare .har file for replay

$ hawk --help
Usage:
  hawk [OPTIONS] <file.har>

Options:
  -h, --host STRING      Host Filter (only include matching entries)
  -c, --cookies STRING   Set Cookies (key1=value1;key2=value2;...)
  -H, --headers STRING   Set Headers (key1=value1;key2=value2;...)
  -p, --pretty           Pretty-print output
0.1.0

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago