Format options keys to make them compatible with both param cases and camel cases
The options object to format
A new object with formatted keys
When input is not a valid object
formatRcOptions({ 'foo-bar': 1 }) // returns { fooBar: 1 }formatRcOptions({ 'foo.bar': 1 }) // returns { foo_bar: 1 } Copy
formatRcOptions({ 'foo-bar': 1 }) // returns { fooBar: 1 }formatRcOptions({ 'foo.bar': 1 }) // returns { foo_bar: 1 }
Format options keys to make them compatible with both param cases and camel cases