camelify
v0.1.0
Published
Simple util for mapping an object with hyphen-separated keys to camelCased keys
Downloads
3,931
Readme
camelify
Turns hyphen-separated object keys or strings into camel-cased versions.
Examples
npm install camelify
camelify('one-two');
// => 'oneTwo'
camelify({
'first-name': 'John',
'last-name': 'Smith'
});
// => { firstName: 'John', 'lastName': 'Smith' }
Tests
npm test