I am trying to add headers to my csv file using fast-csv
my csv file :
"nina", 24
"sarah", 25
const csv = require('fast-csv')
const ws = fs.createWriteStream("/file.csv") ;
csv.write({headers : ['name', 'age']} )
.pipe(ws) ;
but it doesn't work how can I modify this code to add my headers?