normalize-case

0.0.1 • Public • Published

normalize-case

recursively normalize to camelcase

Installation

$ component install yields/normalize-case

Example

normalize({
  api_key: 'baz',
  'first name': 'baz',
  last_name: 'foo',
  array: [{ Name: 'baz' }, { 'names  ': [{ A: 1 }] }]
});
{
  apiKey: 'baz',
  firstName: 'baz',
  lastName: 'foo',
  array: [{ name: 'baz' }, { names: [{ a: 1 }] }]
}

License

(MIT)

Readme

Keywords

none

Package Sidebar

Install

npm i normalize-case

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • segmentio