스네이크 케이스로 인코딩

는 해당 표준에 따라 “스네이크 케이스로 인코딩”로 입력을 인코딩합니다.

입력: 텍스트결과: 텍스트

텍스트 입력

도구 옵션

예제

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)