camelize

WebJar for camelize

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

camelize
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

camelize
WebJar for camelize
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/substack/camelize

Скачать camelize

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.0.0