alexcaza / export-to-csv

Export a JS collection to CSV; written in TypeScript.
Other
207 stars 48 forks source link

support a custom file extension #111

Closed juhis closed 2 months ago

juhis commented 3 months ago

Thanks for a great quick library!

This PR adds support for a fileExtension option motivated by a need to save tab-delimited .tsv files

useTextFile is kept for compatibility

Sorry for double PR - let me know if I missed something

alexcaza commented 3 months ago

Looks like Bun's lockfile needs to be updated due to the addition in "scripts" of the package.json.

Two options:

  1. If you have bun installed locally, could you run bun install and commit the change to bun.lockb
  2. Remove the change to package.json and I'll do it in my tweaks branch
alexcaza commented 2 months ago

Closing in favour of https://github.com/alexcaza/export-to-csv/pull/112. The requested changes have been ignored, and I'd like to build on top of this work. I added the original author to keep the credit.