YS-L / csvlens

Command line csv viewer
MIT License
2.49k stars 40 forks source link

Feature request: Auto-delimiter sniffing #9

Closed jqnatividad closed 9 months ago

jqnatividad commented 2 years ago

perhaps, with csv-sniffer?

egrieco commented 1 year ago

See also qsv-sniffer: CSV sniffer crate for Rust, optimized for qsv.

Pros:

Its a detached fork of csv-sniffer with these additional capabilities, detecting:

  • utf-8 encoding
  • field names
  • number of rows
  • average record length
  • additional data types - Date and DateTime

Caveats:

ℹ️ NOTE: This fork is optimized to support qsv, and its development will be primarily dictated by qsv's requirements. Please continue to use csv-sniffer if you want a general-purpose CSV sniffer.

YS-L commented 1 year ago

I finally got to implementing this! Added this as an option -d auto in the main branch.