Transform a CSV document into JSON Lines.
cat myfile.csv | csv2jsonl > result.jsonlThis package is also provided as a Zig 0.16.0-compatible library with the following functions:
streamCsvToJsonLines(allocator: std.mem.Allocator, options: CsvParserOptions, reader: *std.Io.Reader, writer: *std.Io.Writer) !voidparseCsv(allocator: std.mem.Allocator, options: CsvParserOptions, reader: *std.Io.Reader) CsvIteratorwriteJsonLines(iter: anytype, writer: *std.Io.Writer): !void
The API is in alpha and subject to change. It doesn't use any external libraries and I plan to keep it that way.
Build with zig build. There are no tests yet.
I'm not accepting any issues or pull requests that are LLM-generated.