ffalt/xlsx-extract — pull request #1 by mpelikan (2014-09-21 05:04:24+00:00)
Title: Better Support For CSV (encoding and delimiters)

I had a need for a XSLX export tool. All of the existing tools (including Excel, itself) do not properly encode the fields for CSV export.

Namely:
* If there is a delimiter (tab, comma, etc.) in the field the field needs to be quoted.
* If there is a quote in a field, it must be escaped (two quotes together: `""`); or can also be escaped via `\"`.

I tried using other XLSX modules in NPM, but all of them we either overkill (and still had problems above), too slow, etc.

I was going to write my own SAX parser when I ran across this repository. Great work!

However, I need to have proper encoding of the fields, but also needed the flexibility of setting the field delimiter.

Finally, I needed to have the tool use the OS defined new lines, rather than always using `\n`.