Thin wrapper around node-csv-stringify providing a simple callback interface, sensible defaults and a few extras.
npm install @fluidapps/csvify
npm install @fluidapps/csvify
`
Basic usage
`javascript
var csvify = require('@fluidapps/csvify');
csvify(objectArray, function(err, data) {
// data is a CSV representation of objectArray
});
`
Options
- excelFriendly: prepend the resulting data with sep= to hint Excel into
automatically importing the CSV
- stringifier: options object passed directly to node-csv-stringify options
$3
`javascript
csvify(objectArray, {
excelFriendly: false,
stringifier: {
header: true
}
}, callback);
``