@tracerbench/har
v8.0.0
Published
HAR json typescript interfaces
Downloads
76
Readme
HAR JSON Typescript Interfaces
Provides typing to parsed JSON from a HAR archive.
Example
import { Archive } from "@tracerbench/har";
import { readFileSync } from "fs";
const archive: Archive = JSON.parse(readFileSync("path/to/archive.har"), "utf8");
for (const entry of archive.log.entries) {
console.log(entry.request.url);
}