Skip to content

Commit

Permalink
Debump + readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
simonradier committed Sep 28, 2023
1 parent 9040e32 commit 04067be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "camelcase-keys",
"version": "10.0.0",
"version": "9.0.0",
"description": "Convert object keys to camel case",
"license": "MIT",
"repository": "sindresorhus/camelcase-keys",
Expand Down
5 changes: 4 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ camelcaseKeys({'foo-bar': true, nested: {unicorn_rainbow: true}}, {deep: true});
camelcaseKeys({a_b: 1, a_c: {c_d: 1, c_e: {e_f: 1}}}, {deep: true, stopPaths: ['a_c.c_e']}),
//=> {aB: 1, aC: {cD: 1, cE: {e_f: 1}}}

// preserve Uppercase if they are consecutive
camelcaseKeys({'foo-BAR': true, nested: {unicorn_RAINbow: true}}, {deep: true, preserveConsecutiveUppercase: false});
//=> {fooBar: true, nested: {unicornRainbow: true}}
camelcaseKeys({'foo-BAR': true, nested: {unicorn_RAINbow: true}}, {deep: true, preserveConsecutiveUppercase: true});
//=> {fooBAR: true, nested: {unicornRAINbow: true}}

Expand Down Expand Up @@ -121,7 +124,7 @@ Uppercase the first character as in `bye-bye` → `ByeBye`.
Type: `boolean`\
Default: `false`

Preserve consecutive uppercase characters: `foo-BAR``FooBAR`.
Preserve consecutive uppercase characters: `foo-BAR``FooBAR` if true vs `foo-BAR``FooBar` if false

## Related

Expand Down

0 comments on commit 04067be

Please sign in to comment.