convert-camelcase

1.0.3 • Public • Published

convert-camelcase

Converts object keys to camelCase

Install

$npm install convert-camelcase

Usage

import CamelCase from 'convert-camelcase';
let camelCase = new CamelCase;

camelCase.convert({my_name: 'pdw'})
//{myName: 'pdw'}

camelCase.convert({my_name: 'pdw', my_arr:{arr_one: 1, arr_two: 2}})
//{myName: 'pdw', myArr: {arrOne: 1, arrTwo: 2}};

test

$npm test

License

© 2015 ingpdw. MIT License

Readme

Keywords

none

Package Sidebar

Install

npm i convert-camelcase

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

5.67 kB

Total Files

8

Last publish

Collaborators

  • ingpdw