Skip to content
forked from myadzel/saz2har

Converts SAZ file (from Fiddler) to HAR file (for Chrome).

License

Notifications You must be signed in to change notification settings

prantlf/saz2har

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@prantlf/saz2har

NPM version Dependency Status devDependency Status

Converts SAZ file (from Fiddler) to HAR file (for Chrome).

This fork of the original project includes the following enhancements:

  • Runs on OSX. (Replaced minizip with extract-zip.)
  • The HAR validation can be disabled. (The current validator does not handle date-time values in some Fiddler logs well.)
  • The command-like tool is documented and prints usage instructions.
  • The dependencies are upgraded to the the most recent versions.

Installation

Make sure that you use Node.js 6 or newer. Install this package locally if you want to use it programmatically:

$ npm i @prantlf/saz2har

If you want to use the command-line tool, install the package globally:

$ npm i -g @prantlf/saz2har

API

convert(input, [output], [options])

  • input - path to the input .saz file
  • output - path to the output .har file
  • options - object with conversion options
    • validate - enables validation of the the HAR output (default: true)
const saz2har = require("@prantlf/saz2har");

saz2har.convert("tmp/log.saz", (err, data) => {
    if (err) {
        return console.error(err);
    }
    console.log(data);
});

Tool

$ saz2har --help

Usage: saz2har [options] input.saz [output.har]

Options:
  --help         Show help                                     [boolean]
  --version      Show version                                  [boolean]
  --no-validate  Validate the output HAR file (default: true)  [boolean]

Examples:
  saz2har foo.saz bar.har --no-validate

License

MIT

About

Converts SAZ file (from Fiddler) to HAR file (for Chrome).

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%