0
Below follows my code for reading a file. csv using Nodejs, I would like to know how I can remove the "COMPANY" and "%" columns from the file 'file.csv', thanks in advance to those who contribute.
var fs = require('fs')
var csv = require('fast-csv')
var list = []
fs.createReadStream('file.csv')
.pipe(csv())
.on('data', data => {
list = data;
for (let i = 0; i < list.length; i++) {
console.log(list[i])
}
})
.on('end', function (data) {
console.log('\nleitura finalizada!')
})
File.csv link used in code reference: Download the.csv file
Used the fast-csv documentation link library: Documentation of fast-csv