Socket
Socket
Sign inDemoInstall

camel-case-props

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    camel-case-props

recursive utility function which clones an object with all props camel cased


Version published
Weekly downloads
2
Maintainers
1
Install size
1.35 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 14 Aug 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc