csv
Version:
CSV parser with simple api, full of options and tested against large datasets.
39 lines (37 loc) • 856 B
JavaScript
// Generated by CoffeeScript 1.6.2
/*
Input and output options
========================
The `options` property provide access to the `from` and `to` object used to store options. This
property is for internal usage and could be considered private. It is recommanded to use
the `from.options()` and `to.options()` to access those objects.
*/
module.exports = function() {
return {
from: {
delimiter: ',',
quote: '"',
escape: '"',
columns: null,
flags: 'r',
encoding: 'utf8',
trim: false,
ltrim: false,
rtrim: false
},
to: {
delimiter: null,
quote: null,
quoted: false,
escape: null,
columns: null,
header: false,
lineBreaks: null,
flags: 'w',
encoding: 'utf8',
newColumns: false,
end: true,
eof: false
}
};
};