Write a command-line tool csv2ndjson that converts a CSV file into NDJSON (newline-delimited JSON). The tool…
Write a command-line tool csv2ndjson that converts a CSV file into NDJSON (newline-delimited JSON). The tool…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - The CSV file may use any delimiter (default comma , ), any quote character (default…
The task
**Input contract:** - The CSV file may use any delimiter (default comma `,`), any quote character (default double quote `"`). - The CSV file may or may not have a header row (default: has header). If `--no-header` is given, the first row is data, and fields are named `col0`, `col1`, etc. If `--fields` is given…
Part of ai-and/termgrade-environments.