Echo JS 0.11.0

<~>
sbruchmann 3697 days ago. link 1 point
I don’t see any use cases for this. Does anyone else?

Replies

buster 3697 days ago. link 2 points
I made this to personally use with the bookshelfjs orm. I convert express request[params,query,body] objects that use conventional camelCase keys to match db column names that use snake_case. I extend my models to use camelize for parsing db query outputs. It allows my models and db to use different and preferred naming conventions. 

There are a bunch of string conversion modules but few I found focused on object keys, like I needed. Once I found them I wrapped them for convenience. I wouldn't be opposed to adding other cases, like: PascalCase, CONSTANT_CASE, ALLUPPERCASE, alllowercase, etc. but for those, I don't have a use case.. yet.
sbruchmann 3697 days ago. link 1 point
Ah, okay. This seems plausible to me. Thanks for the explanation!