Simplify encoding & decoding CSV. Easy exporting from an API, or reformatting on a Client!
var csv = require( "csv.js" );
var encoded = csv.encode( [{prop: "value"}, {prop: "value2"}] );
console.log( encoded );
//
prop
value
value2Encodes arg as CSV. The optional delimiter allows you change the default comma. The optional header allows you to disable the first row of column names by passing false.
Decodes arg to an Array of Objects. The optional delimiter allows you to specify the delimiter if it is not a comma.
csv.js supports AMD loaders (require.js, curl.js, etc.), CommonJS, node.js & npm (npm install csv.js), or using a script tag.
csv.js is licensed under BSD-3 https://raw.github.com/avoidwork/csv.js/master/LICENSE
Copyright (c) 2021, Jason Mulligan jason.mulligan@avoidwork.com