koles / ya-csv

CSV parser/writer for Node.js
MIT License
242 stars 55 forks source link

Make createCsvFileWriter()'s <options> param optional #15

Closed runningskull closed 12 years ago

runningskull commented 12 years ago

Hey Pavel,

First off, thanks for ya-csv. It's a great library and saved me hours of work. I appreciate it!

This patch is to fix a "quirk" in the new version that makes the options param to createCsvFileWriter() required, when it seems it's meant to be optional.

It's not broken as-is, but you do have to pass in {flags: 'w'} for the options parameter or else it'll throw an error.

Let me know if that wasn't the intent.

Thanks!

koles commented 12 years ago

Thanks a lot for a quick fix! Version 0.9.1 published.