A parser for .har files. To use it in you project add the dependency to your Package.swift file:
import PackageDescription
let package = Package(
name: "My awesome CLI tool"
dependencies: [
.package(
url: "https://github.com/JanGorman/HARParser",
from: "1.0.0"
)
]
)Initialise an instance of the parser with the contents of a .har file as Data:
import HARParser
func parse() throws {
let data = Data() // Load the file into memory
let parser = HARParser(data: data)
// After parsing you can access the different fields of the archive
let har = try parser.parse()
}Table is released under the MIT license. See LICENSE for details.