Catalog npm
PACKAGE EXPLORERView in registry

2-camel-case

npm

library for converting an object or array to the camelcase style

2-camel-casearray-to-camel-casecamelcaseobject-to-camel-caseto-camel-case
Versions collected4
Direct dependencies5From release 1.1.0
Last observed20 Oct, 18:48 UTC

README

Current package documentation

2-camel-case

Converting an object or array of any nesting level to camelcase style

Installation

$ npm install 2-camel-case

or

$ yarn add 2-camel-case

Example

import toCamelCase from '2-camel-case';

toCamelCase({
  first_name: 'Ivan',
  middle_name: 'Ivanovich',
  last_name: 'Ivanov',
});
/* 
  return {
    firstName: 'Ivan',
    middleName: 'Ivanovich',
    lastName: 'Ivanov', 
  }
*/

toCamelCase([
  {
    first_name: 'Ivan',
    middle_name: 'Ivanovich',
    last_name: 'Ivanov',
  },
]);
/* 
  return [
  {
    firstName: 'Ivan',
    middleName: 'Ivanovich',
    lastName: 'Ivanov',
  },
]
*/

API

toCameCase(data)

data

Type: array | object

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 4

Collected releases
VersionPublishedDirect dependenciesOpen version
1.1.0Registry latest23 Mar 20225
1.0.224 Feb 20224
1.0.124 Feb 20224
1.0.024 Feb 20224

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
sovarim/2-camel-case

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:48 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:db9db901f27eac3d92b54f273761cedfbe3e0c9e65e687397dcfe7cf8f845b19