camelify

0.1.0 • Public • Published

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

Dependents (2)

Package Sidebar

Install

npm i camelify

Weekly Downloads

1,020

Version

0.1.0

License

MIT

Last publish

Collaborators

  • mikemaccana
  • lennym