case-key
Convert object keys from camelCase to snake_case or vice versa
This lib is originated from sindresorhus/camelcase-keys and bendrucker/snakecase-keys, for exclude
option in camelcase-keys and snakecase-keys does not stop recursion in nested objects.
Usage
camelcasetarget: object, option: KeyCaseOptions; snakecasetarget: object, option: KeyCaseOptions;
Demo Code
; camelcase, ; /*{ helloWorld: { camel_case: { some_key: 123 } }}*/ camelcase, ; // output hello.world camelcase, ; // output helloWorld