camel.js 220 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 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));