Swift wrapper for libzsv.
You can add swift-zsv to an Xcode project by adding it to your project as a package.
If you want to use swift-zsv in a SwiftPM project, it's as simple as adding it to your Package.swift:
dependencies: [
.package(url: "https://github.com/mihai8804858/swift-zsv", branch: "main")
]And then adding the product to any target that needs access to the library:
.product(name: "SwiftZSV", package: "swift-zsv")Just import SwiftZSV in your project to access the underlying zsv C API:
import SwiftZSV
let parser = zsv_new(nil)
zsv_set_row_handler(parser) { _ in
// handle CSV row
}
zsv_parse_bytes(parser, ...)
zsv_finish(parser)
zsv_delete(parser)zsv- v0.3.9-alpha
This library is released under the MIT license. See LICENSE for details.