Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 326 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 326 Bytes

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