gitdagray / csv-to-sql-insert

Provide table data as a CSV (comma-separated values) file and output a SQL insert statement for a table with the same name as the file.
MIT License
99 stars 120 forks source link

Fix Issue #83: Added support for different delimiters #86

Open dangrant6 opened 1 week ago

dangrant6 commented 1 week ago

Command-line Argument for Custom Delimiter:

Added --delimiter option to specify custom delimiters (e.g., npm start YourFileName --delimiter=;) Implemented parsing of this new command-line argument in the parseArguments function.

Delimiter Auto-detection:

Implemented detectDelimiter function to automatically identify the delimiter used in CSV files if not provided.

Updated ReadME to explain the new custom delimiter feature and auto-detection capability. Code handles comma, semicolon, colon, pipe, and tab delimiters.