ryu1kn / csv-writer

Convert objects/arrays into a CSV string or write them into a CSV file
https://www.npmjs.com/package/csv-writer
MIT License
246 stars 39 forks source link

Support TSV #10

Closed ryu1kn closed 4 years ago

ryu1kn commented 6 years ago

TSV is also a popular data format and especially useful as tab characters appear less frequent compared to comma characters used in CSV.

Compared to CSV, TSV is even less strictly defined and I haven't found a document which defines how the tab characters in fields should be escaped.

So when I implement this, probably I'll follow the below document, i.e. do not allow tab characters appear in field values.

ryu1kn commented 6 years ago

I'm thinking to introduce TsvWriter and TsvStringifier, and leave CsvWriter and CsvStringifier as is.

ryu1kn commented 6 years ago

This issue is a continuation from #6.

ryu1kn commented 4 years ago

51 should also cover this enhancement.