Contents

mihai8804858/swift-zsv

Swift wrapper for [`libzsv`](https://github.com/liquidaty/zsv).

Installation

You can add swift-zsv to an Xcode project by adding it to your project as a package.

https://github.com/mihai8804858/swift-zsv

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

Quick Start

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)

Prebuilt Versions

License

This library is released under the MIT license. See LICENSE for details.

Package Metadata

Repository: mihai8804858/swift-zsv

Default branch: main

README: README.md