CSVKit is a very simple, fast and lightweight CSV parsing and encoding library for Swift programming.
The parser reads in an String or Data object and parses the CSV fields into an array of strings. Every root element corresponds to one line of the data.
CSVKit
CSVKit is a very simple, fast and lightweight CSV parsing and encoding library for Swift programming.
The parser reads in an String or Data object and parses the CSV fields into an array of strings. Every root element corresponds to one line of the data.
Features:
Installation
Swift Package Manager
Add the following to your Package.swift file:
Example usage
Decoding:
Default decoding
Output:
Custom separator
Output:
Encoding:
Output:
Changelog
Version 1.0:
Version 0.0.5
Version 0.0.4
Version 0.0.3
Version 0.0.2
Version 0.0.1
License
CSVKit is released under the Apache License 2.0