Als Camel Case kodieren

Codiert die Eingabe mit “Als Camel Case kodieren” gemäß dem entsprechenden Standard.

Eingabe: TextErgebnis: Text

Texteingabe

Optionen

Beispiele

Map a JSON API field to a JavaScript property

A snake_case API field becomes lower camel case.

Eingabe

first_name

Expected answer

firstName
Versuche, kontextbewusst zu sein
Off
Keep a mixed acronym boundary readable

XML becomes xml; the following capitalized words remain boundaries.

Eingabe

XMLHttpRequest

Expected answer

xmlHttpRequest
Versuche, kontextbewusst zu sein
Off
Remove the accent when naming a café menu property

Lodash removes the accent as part of word normalization.

Eingabe

café menu price

Expected answer

cafeMenuPrice
Versuche, kontextbewusst zu sein
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.

Eingabe

user_name = "display_name"; retry_count = 3;

Expected answer

userName = "display_name"; retryCount = 3;
Versuche, kontextbewusst zu sein
On
Turn a versioned heading into a property name

The numeric suffix is retained.

Eingabe

HTTP response code 404

Expected answer

httpResponseCode404
Versuche, kontextbewusst zu sein
Off
To Camel case (dumb)

Eingabe

hello world

Expected answer

helloWorld
Versuche, kontextbewusst zu sein
Off
To Camel case (smart)

Eingabe

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");
}
Versuche, kontextbewusst zu sein
On

Parameter

ParameterStandardwertEingabe und Auswahl
Versuche, kontextbewusst zu seinfalseEin oder aus

Ähnliche Werkzeuge

Code-Bereinigung

Referenz zur Operation

Technische Originaldokumentation ansehen (English)