1.0.1 • Published 7 years ago

camel-case-props v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

camel-case-props

a small utility recursive function which returns a new object with all props camel cased Is your api returning snakeCase props and you want to use camelCase? Look no further.

usage

const camelCaseProps = require('camel-case-props')
camelCaseProps({some_snake_case_prop: 'aaa_bbb', nested: {a_b: 'c'}}) // {someSnakeCaseProp: null, nested: {aB:c}}
1.0.1

7 years ago

1.0.0

7 years ago