使用例
Map a JSON API field to a JavaScript property
A snake_case API field becomes lower camel case.
入力
first_nameExpected answer
firstName- コンテキストを意識して試みる
Off
Keep a mixed acronym boundary readable
XML becomes xml; the following capitalized words remain boundaries.
入力
XMLHttpRequestExpected answer
xmlHttpRequest- コンテキストを意識して試みる
Off
Remove the accent when naming a café menu property
Lodash removes the accent as part of word normalization.
入力
café menu priceExpected answer
cafeMenuPrice- コンテキストを意識して試みる
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.
入力
user_name = "display_name"; retry_count = 3;Expected answer
userName = "display_name"; retryCount = 3;- コンテキストを意識して試みる
On
Turn a versioned heading into a property name
The numeric suffix is retained.
入力
HTTP response code 404Expected answer
httpResponseCode404- コンテキストを意識して試みる
Off
To Camel case (dumb)
入力
hello worldExpected answer
helloWorld- コンテキストを意識して試みる
Off
To Camel case (smart)
入力
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");
}- コンテキストを意識して試みる
On
パラメーター
| パラメーター | 既定値 | 入力と選択肢 |
|---|---|---|
| コンテキストを意識して試みる | false | オンまたはオフ |