humps
humps copied to clipboard
🐫 Underscore-to-camelCase converter (and vice versa) for strings and object keys in JavaScript.
Unfortunately I can no longer maintain this project. If you are interested in taking it over please get in touch and we'll see if we can sort something out. Thanks.
I noticed that some uppercased keys were camelized in a weird way: ```js humps.camelizeKeys({ "USERNAME": "foo" }) // returns { uSERNAME: "foo" } ``` I've used a custom function &...
Is it possible to exclude parts of a bigger nested object from being converted? I currently am receiving an object in the following form: ``` { some_key: 12345, important_stuff: {...
# Add `depth` option The `depth` option determines how many levels deep in a nested object that keys will be converted. I also reworked some of the README to make...
I've been building an app for low spec platforms that uses humps to normalize API responses. I noticed that the `camelizeKeys` function was taking nearly hundreds of ms to complete...
## Desc Hey guys, brilliant module! But I ran into a few problems when I used it here is my test code: ```js const humps = require('humps') const formatTestStr =...
This option is prevent to change keys in non-plain objects. For example: this breaks Moment.js object, with this option - all ok.
It is similar to the problem from #49, but the library still attempt to process Blob object
If runs in some mobile container like wechat miniprogram, it will meet this problem, so should give a option like recursive level to stop this, could be a situation where...