Simple csv string
A simple js tool to render standards compliant csv's. See https://en.wikipedia.org/wiki/Comma-separated_values for the spec.
installation
npm install --save simple-csv-string
usage
var Csv = ; // add the header line in the constructorvar csv = 'header1' 'header2' 'header3' 'header4' 'header5'; // the length of subsequent added lines won't be modified if they are as long as the headercsv; // empty cells will be added if a line is shorter than the headercsv; // cells will be removed if a line is longer than the headercsv; console; // header1,header2,header3,header4,header5// val11,val12,val13,val14,val15// val21,val22,val23,val24,// 2,false,,," Super,// ""luxurious"" truck "
build and test
npm install
npm test
or
node runTests