Codificar en Camel case

Codifica la entrada con “Codificar en Camel case” según el estándar correspondiente.

Entrada: TextoResultado: Texto

Entrada de texto

Opciones

Ejemplos

Map a JSON API field to a JavaScript property

A snake_case API field becomes lower camel case.

Entrada

first_name

Expected answer

firstName
Intentar ser consciente del contexto
Off
Keep a mixed acronym boundary readable

XML becomes xml; the following capitalized words remain boundaries.

Entrada

XMLHttpRequest

Expected answer

xmlHttpRequest
Intentar ser consciente del contexto
Off
Remove the accent when naming a café menu property

Lodash removes the accent as part of word normalization.

Entrada

café menu price

Expected answer

cafeMenuPrice
Intentar ser consciente del contexto
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.

Entrada

user_name = "display_name"; retry_count = 3;

Expected answer

userName = "display_name"; retryCount = 3;
Intentar ser consciente del contexto
On
Turn a versioned heading into a property name

The numeric suffix is retained.

Entrada

HTTP response code 404

Expected answer

httpResponseCode404
Intentar ser consciente del contexto
Off
To Camel case (dumb)

Entrada

hello world

Expected answer

helloWorld
Intentar ser consciente del contexto
Off
To Camel case (smart)

Entrada

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");
}
Intentar ser consciente del contexto
On

Parámetros

ParámetroValor predeterminadoEntrada y opciones
Intentar ser consciente del contextofalseActivado o desactivado

Herramientas relacionadas

Ordenar código

Referencia de la operación

Ver la documentación técnica original (English)