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

Readme

Keywords

none

Package Sidebar

Install

npm i camelify

Weekly Downloads

1,643

Version

0.1.0

License

MIT

Last publish

Collaborators

  • mikemaccana
  • lennym