CSVFile is a convenient wrapper for reading and writing CSV files
into structured Table and Row
objects.
It provides:
- Creating and resetting an internal
Table. - Adding rows manually with
Rowobjects. - Reading CSV directly from disk into a
Table. - Writing table contents back to a CSV file.
- Converting the internal table into JSON text.
import { CSVFile } from "@ckn-technology/data";
const csv = new CSVFile("./data/users.csv");