Codifica come Camel case

Codifica l'input con “Codifica come Camel case” secondo lo standard corrispondente.

Input: TestoRisultato: Testo

Inserimento di testo

Opzioni

Esempi

Map a JSON API field to a JavaScript property

A snake_case API field becomes lower camel case.

Input

first_name

Expected answer

firstName
Tentativo di essere consapevole del contesto
Off
Keep a mixed acronym boundary readable

XML becomes xml; the following capitalized words remain boundaries.

Input

XMLHttpRequest

Expected answer

xmlHttpRequest
Tentativo di essere consapevole del contesto
Off
Remove the accent when naming a café menu property

Lodash removes the accent as part of word normalization.

Input

café menu price

Expected answer

cafeMenuPrice
Tentativo di essere consapevole del contesto
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.

Input

user_name = "display_name"; retry_count = 3;

Expected answer

userName = "display_name"; retryCount = 3;
Tentativo di essere consapevole del contesto
On
Turn a versioned heading into a property name

The numeric suffix is retained.

Input

HTTP response code 404

Expected answer

httpResponseCode404
Tentativo di essere consapevole del contesto
Off
To Camel case (dumb)

Input

hello world

Expected answer

helloWorld
Tentativo di essere consapevole del contesto
Off
To Camel case (smart)

Input

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");
}
Tentativo di essere consapevole del contesto
On

Parametri

ParametroValore predefinitoInput e opzioni
Tentativo di essere consapevole del contestofalseAttivo o disattivo

Strumenti correlati

Riordino del codice

Riferimento dell’operazione

Vedi la documentazione tecnica originale (English)