Encoder en Camel case

Encode l'entrée avec “Encoder en Camel case” selon la norme correspondante.

Entrée: TexteRésultat: Texte

Saisie de texte

Options

Exemples

Map a JSON API field to a JavaScript property

A snake_case API field becomes lower camel case.

Entrée

first_name

Expected answer

firstName
Tenter d'être conscient du contexte
Off
Keep a mixed acronym boundary readable

XML becomes xml; the following capitalized words remain boundaries.

Entrée

XMLHttpRequest

Expected answer

xmlHttpRequest
Tenter d'être conscient du contexte
Off
Remove the accent when naming a café menu property

Lodash removes the accent as part of word normalization.

Entrée

café menu price

Expected answer

cafeMenuPrice
Tenter d'être conscient du contexte
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.

Entrée

user_name = "display_name"; retry_count = 3;

Expected answer

userName = "display_name"; retryCount = 3;
Tenter d'être conscient du contexte
On
Turn a versioned heading into a property name

The numeric suffix is retained.

Entrée

HTTP response code 404

Expected answer

httpResponseCode404
Tenter d'être conscient du contexte
Off
To Camel case (dumb)

Entrée

hello world

Expected answer

helloWorld
Tenter d'être conscient du contexte
Off
To Camel case (smart)

Entrée

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");
}
Tenter d'être conscient du contexte
On

Paramètres

ParamètreValeur par défautEntrée et choix
Tenter d'être conscient du contextefalseActivé ou désactivé

Outils associés

Nettoyage du code

Référence de l’opération

Voir la documentation technique originale (English)