sindresorhus / camelcase-keys

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

Add an `omit` option to skip some fields in the output object #24

Closed kilianc closed 6 years ago

kilianc commented 6 years ago

This may be out of scope but I find myself doing camelcaseKeys((omit(o, 'foo')) a lot. Would this be considered out of scope?

sindresorhus commented 6 years ago

You can already do this: camelcaseKeys(o, {exclude: ['foo']}))

kilianc commented 6 years ago

exclude

Type: string[] RegExp[] Default: []

Exclude keys from being camelCased.

I meant excluding keys from the output object. Not just skipping the case change

sindresorhus commented 6 years ago

I see, no that's outside the scope of this module.