1.0.4 • Published 8 years ago

camelize-object-key v1.0.4

Weekly downloads
774
License
MIT
Repository
github
Last release
8 years ago

camelizeObject

Turn object keys into camelCased or decamelize them with a given separator

Installation

$ npm install --save camelize-object-key

API

camelize(object)

camelizeObjectKey.camelize({ "id": 1, "first_name": "Matteo" });
// > { "id": 1, "firstName": "Matteo" }

decamelize(object, separator = "_")

camelizeObjectKey.decamelize({ "id": 1, "firstName": "Matteo" });
// > { "id": 1, "firstName": "Matteo" }

License

MIT

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago