Кодирование в Camel case

Кодирует входные данные с помощью “Кодирование в Camel case” в соответствии с соответствующим стандартом.

Ввод: ТекстРезультат: Текст

Текстовый ввод

Параметры инструмента

Примеры

Map a JSON API field to a JavaScript property

A snake_case API field becomes lower camel case.

Ввод

first_name

Expected answer

firstName
Попытка быть контекстно осведомленным
Off
Keep a mixed acronym boundary readable

XML becomes xml; the following capitalized words remain boundaries.

Ввод

XMLHttpRequest

Expected answer

xmlHttpRequest
Попытка быть контекстно осведомленным
Off
Remove the accent when naming a café menu property

Lodash removes the accent as part of word normalization.

Ввод

café menu price

Expected answer

cafeMenuPrice
Попытка быть контекстно осведомленным
Off
Rename bare keys while retaining a double-quoted value

Context mode preserves this double-quoted string; it is a token heuristic, not a language-aware refactor.

Ввод

user_name = "display_name"; retry_count = 3;

Expected answer

userName = "display_name"; retryCount = 3;
Попытка быть контекстно осведомленным
On
Turn a versioned heading into a property name

The numeric suffix is retained.

Ввод

HTTP response code 404

Expected answer

httpResponseCode404
Попытка быть контекстно осведомленным
Off
To Camel case (dumb)

Ввод

hello world

Expected answer

helloWorld
Попытка быть контекстно осведомленным
Off
To Camel case (smart)

Ввод

test='hello'
echo $test
a_camel_case_function
$a_camel_case_variable;
function function_name() {
  console.log('things inside quotes do not get broken');
  console.log("things inside quotes do not get broken");
}

Expected answer

test='hello'
echo $test
aCamelCaseFunction
$aCamelCaseVariable;
function functionName() {
  console.log('things inside quotes do not get broken');
  console.log("things inside quotes do not get broken");
}
Попытка быть контекстно осведомленным
On

Параметры

ПараметрЗначение по умолчаниюВвод и варианты
Попытка быть контекстно осведомленнымfalseВключено или выключено

Похожие инструменты

Форматирование кода

Справка об операции

Открыть исходную техническую документацию (English)