Permalink
Browse files

teach createCsvWriter() to make the options pararm completely optional

  • Loading branch information...
runningskull committed Feb 26, 2012
1 parent fc955f4 commit 354ea6582cdba1d96b4c2c07a6ad79ed6282b728
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/ya-csv.js
View
@@ -309,6 +309,7 @@ function _appendField(outArr, writer, field) {
};
csv.createCsvFileWriter = function(path, options) {
+ options = options || {'flags': 'w'};
var writeStream = fs.createWriteStream(path, {
'flags': options.flags || 'w'
});

0 comments on commit 354ea65

Please sign in to comment.