sindresorhus/camelcase-keys





The issue has been solved
Allow paths to be excluded from transformation #23
mojavelinux posted onGitHub
Allow certain paths to be excluded from transformation (excludePaths
). This is necessary when certain subpaths of the structure hold pure data that are not part of the model. For example, one of the keys might hold key-value pair data, but that key-value pair data cannot be corrupted.
I'm imagining something like:
camelcaseKeys(raw, { deep: true, excludePaths: ['path.to.hash'] })
It would be the data inside this path, not the path itself, that would be excluded.