Permalink
Browse files

Merge pull request #15 from runningskull/master

Make createCsvFileWriter()'s <options> param optional
  • Loading branch information...
2 parents fc955f4 + 354ea65 commit 4c14735aead1363d3c94f7692d14f2508fb47111 @koles committed Feb 26, 2012
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 4c14735

Please sign in to comment.