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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.0300latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.0300
0.0.2715
0.0.15

Package Sidebar

Install

npm i camelify

Weekly Downloads

927

Version

0.1.0

License

MIT

Last publish

Collaborators

  • mikemaccana
  • lennym