dijkstra-backend-cloudron/node_modules/camelize/example/camel.js

11 lines
220 B
JavaScript
Raw Permalink Normal View History

var camelize = require('../');
var obj = {
fee_fie_foe: 'fum',
beep_boop: [
{ 'abc.xyz': 'mno' },
{ 'foo-bar': 'baz' }
]
};
var res = camelize(obj);
console.log(JSON.stringify(res, null, 2));