camelize-object-keys
v3.0.0
Published
Converts object keys to UpperCamelCase.
Downloads
6
Readme
camelize-object-keys
Converts object keys to UpperCamelCase.
Installation
npm install --save camelize-object-keys
Usage
import { CamelizeKeys, camelizeKeys } from '../src/camelizeKeys'
CamelizeKeys({ hoge_fuga: 'fuga', fuga: { baa: 'aaa' }}) # => { HogeFuga: 'fuga', Fuga: { Baa: 'aaa' }}
camelizeKeys({ hoge_fuga: 'fuga', fuga: { baa: 'aaa' }}) # => { hogeFuga: 'fuga', fuga: { baa: 'aaa' }}