Skip to content

PabloReszczynski/csv2jsonl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSV to JSONL tool

Transform a CSV document into JSON Lines.

Usage

cat myfile.csv | csv2jsonl > result.jsonl

Library

This 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) !void
  • parseCsv(allocator: std.mem.Allocator, options: CsvParserOptions, reader: *std.Io.Reader) CsvIterator
  • writeJsonLines(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.

Developing and Contributing

Build with zig build. There are no tests yet.

I'm not accepting any issues or pull requests that are LLM-generated.

About

Convert CSV files to JSONLines

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages