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

Add support for writing compressed csv #71

Closed alphanso closed 11 months ago

alphanso commented 3 years ago

Hi,

We are writing a very large csv files and need it to gzipped at runtime rather post writing completion. This feature could be very useful if added.

Thanks

ryu1kn commented 3 years ago

Hi @alphanso , thanks for the suggestion. Perhaps the way to support your usecase would be, extend this library to support a stream then you use it in conjunction with a gzip stream library like archiver. How does it sound?

ryu1kn commented 3 years ago

Actually, with the example in the above mentioned ticket, you can write a steam yourself and use it with a gzip stream library to see if that idea works for you first 😉