Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Swift .har parser

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages