csval icon indicating copy to clipboard operation
csval copied to clipboard

Support custom delimiter

Open harrybiddle opened this issue 6 months ago • 1 comments

Hey - I wanted to use your tool but I couldn't see an option to pass in a custom delimiter

harrybiddle avatar Dec 11 '23 09:12 harrybiddle

It should scan the first few lines of your data to auto-detect the delimiter. But allowing custom parsing configuration is a great feature idea.

One strategy for implementing this would be adding a CLI argument for specifying a config file. Then merge that configuration with the defaults found in src/parseCsv.js.

In the meantime, you could fork and modify the options for parse(). Adding something like delimiter: ";" would work.

travishorn avatar Dec 14 '23 00:12 travishorn