camel-case-props

1.0.1 • Public • Published

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}}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    3
  • 1.0.0
    0

Package Sidebar

Install

npm i camel-case-props

Weekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • capaj