Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #15 from runningskull/master

Make createCsvFileWriter()'s <options> param optional
  • Loading branch information...
commit 4c14735aead1363d3c94f7692d14f2508fb47111 2 parents fc955f4 + 354ea65
@koles authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/ya-csv.js
View
1  lib/ya-csv.js
@@ -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'
});
Please sign in to comment.
Something went wrong with that request. Please try again.