camelize

WebJar for camelize

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

camelize
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

camelize
WebJar for camelize
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/substack/camelize

Download camelize

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/camelize/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>camelize</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/camelize/
implementation 'org.webjars.npm:camelize:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/camelize/
implementation ("org.webjars.npm:camelize:1.0.0")
'org.webjars.npm:camelize:jar:1.0.0'
<dependency org="org.webjars.npm" name="camelize" rev="1.0.0">
  <artifact name="camelize" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='camelize', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "camelize" % "1.0.0"
[org.webjars.npm/camelize "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

camelize

recursively transform key strings to camel-case

build status

browser support

example

var camelize = require('camelize');
var obj = {
    fee_fie_foe: 'fum',
    beep_boop: [
        { 'abc.xyz': 'mno' },
        { 'foo-bar': 'baz' }
    ]
};
var res = camelize(obj);
console.log(JSON.stringify(res, null, 2));

output:

{
  "feeFieFoe": "fum",
  "beepBoop": [
    {
      "abcXyz": "mno"
    },
    {
      "fooBar": "baz"
    }
  ]
}

methods

var camelize = require('camelize')

camelize(obj)

Convert the key strings in obj to camel-case recursively.

install

With npm do:

npm install camelize

To use in the browser, use browserify.

license

MIT

Versions

Version
1.0.0