Swiftpack.co - Package - JanGorman/HARParser

HARParser

Build Status SPM

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"
        )
    ]
)

Usage

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()
}

Licence

Table is released under the MIT license. See LICENSE for details.

Github

link
Stars: 0
Help us keep the lights on

Dependencies

Used By

Total: 0

Releases

1.0.0 - Nov 12, 2017