In Snake Case codieren

Codiert die Eingabe mit “In Snake Case codieren” gemäß dem entsprechenden Standard.

Eingabe: TextErgebnis: Text

Texteingabe

Optionen

Beispiele

Map an API property to a database-column style

Eingabe

createdAt

Expected answer

created_at
Versuche, kontextbewusst zu sein
Off
Separate an acronym from the next word

HTTP is treated as one word.

Eingabe

HTTPResponseCode

Expected answer

http_response_code
Versuche, kontextbewusst zu sein
Off
Normalize a measurement heading containing a number

The digit 2 forms its own word boundary; inspect the exact output before adopting a schema name.

Eingabe

CO2 concentration ppm

Expected answer

co_2_concentration_ppm
Versuche, kontextbewusst zu sein
Off
Deburr a city name for a plain ASCII identifier

The original diacritics are removed.

Eingabe

São Paulo station

Expected answer

sao_paulo_station
Versuche, kontextbewusst zu sein
Off
Rename bare tokens while retaining a quoted key

Context mode protects double-quoted text; review real code with its parser before applying replacements.

Eingabe

firstName = "displayName"; maxRetries = 5;

Expected answer

first_name = "displayName"; max_retries = 5;
Versuche, kontextbewusst zu sein
On
To Snake case (dumb)

Eingabe

hello world

Expected answer

hello_world
Versuche, kontextbewusst zu sein
Off
To Snake case (smart)

Eingabe

test='hello'
echo $test
aSnakeCaseFunction
$aSnakeCaseVariable;
function functionName() {
  console.log('things inside quotes do not get broken');
  console.log("things inside quotes do not get broken");
}

Expected answer

test='hello'
echo $test
a_snake_case_function
$a_snake_case_variable;
function function_name() {
  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)