camelify

Simple util for mapping an object with hyphen-separated keys to camelCased keys

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
camelify
0.1.09 years ago10 years agoMinified + gzip package size for camelify in KB

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