Skip to content

A csv to jsonl converter in under 360 lines of code, written in C

Notifications You must be signed in to change notification settings

sangstar/csv-jsonl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

csv-jsonl

A csv to jsonl converter written in C, in under 360 lines of code.

To use, compile the executable:

gcc -o bin/csv-jsonl main.c

And run it.

cd bin && ./csv-jsonl <path-to-csv> <path-to-outputted-jsonl>

Command line arguments can be listed with --help:

Arguments:
   input_csv                   The path to the csv to be converted
   output_jsonl                The path where the converted jsonl will be created
   -n                  \n      (Optional) Newline escape sequence. Default \n
   --buffer-size       1000    (Optional) Bytes per read
   --buffer-read-size  1000    (Optional) Read size from outer buffer

About

A csv to jsonl converter in under 360 lines of code, written in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published