csv-formatter
streaming CSV formatter that aims for compatibility with the csv-spectrum CSV acid test suite.
npm install csv-formatter
usage
simply instantiate csv
and pump rows in as objects and get out a csv file.
you can use csv-formatter
in the browser with browserify
var csv =
the csv constructor accepts the following options as well
var stream =
it accepts too an array, that specifies the headers for the object returned:
var stream =
or in the option object as well
var stream =
if you do not specify the headers, csv-formatter will take the keys of the first object supplied and treat it like the headers
License
ISC