sindresorhus / camelcase-keys

Convert object keys to camel case
MIT License
691 stars 95 forks source link

camelcase-keys & snakecases-keys inconsistent default behaviour #27

Open boedy opened 6 years ago

boedy commented 6 years ago

@sindresorhus @bendrucker

Both of your packages communicate a similar api, but you don't use the same defaults. The deep option for camelcase-keys is false where it is true for snakecase-keys. I would suggest standardising the default to prevent unsuspected behaviour as I experienced first hand.

I believe defaulting the deep option to true aligns with most preferences.