スネークケースとしてエンコード

対応する標準に従って “スネークケースとしてエンコード” で入力をエンコードします。

入力: テキスト結果: テキスト

テキスト入力

ツールの設定

使用例

Map an API property to a database-column style

入力

createdAt

Expected answer

created_at
コンテキストを意識して試みる
Off
Separate an acronym from the next word

HTTP is treated as one word.

入力

HTTPResponseCode

Expected answer

http_response_code
コンテキストを意識して試みる
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.

入力

CO2 concentration ppm

Expected answer

co_2_concentration_ppm
コンテキストを意識して試みる
Off
Deburr a city name for a plain ASCII identifier

The original diacritics are removed.

入力

São Paulo station

Expected answer

sao_paulo_station
コンテキストを意識して試みる
Off
Rename bare tokens while retaining a quoted key

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

入力

firstName = "displayName"; maxRetries = 5;

Expected answer

first_name = "displayName"; max_retries = 5;
コンテキストを意識して試みる
On
To Snake case (dumb)

入力

hello world

Expected answer

hello_world
コンテキストを意識して試みる
Off
To Snake case (smart)

入力

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");
}
コンテキストを意識して試みる
On

パラメーター

パラメーター既定値入力と選択肢
コンテキストを意識して試みるfalseオンまたはオフ

関連ツール

コード整形

操作の参考資料

元の技術文書を見る (English)