metasoarous/semantic-csv

Headers to lower case

Closed this issue · 4 comments

I recently found myself needing and writing a function to make headers a consistent case for key lookups in a CSV I don't have control over. I'm not sure if it's something that fits into the library itself but I'm happy to submit a patch if it sounds useful.

I just noticed issue #26. Perhaps I'll take a look at doing that instead if I have the time.

I'd be okay with an option for that. I'd even be fine with that being the default, but not without doing a major version bump, since I'd consider it a breaking change. Hoping to do a major bump soon for the transducers support bit have been working on other things.

Oh didn't see second message. Yeah, more general is better.

I'm going to close this, you can now pass clojure.string/lower-case to the transform-header key on mappify.