Converting HTML table to CSV format
npm install node-table-to-csvConverting HTML table to CSV file from command line.
sh
$ npm install node-table-to-csv
`Usage
`sh
var tableToCsv = require('node-table-to-csv');htmlTable =
"
" +
" r1c1 r1c2 r1c3 " +
" r2c1 r2c2 r2c3 " +
" r3c1 r3c2 r3c3 " +
"
";csv = tableToCsv(htmlTable);
console.log(csv);let's do
``