Кодирование в Kebab case

Кодирует входные данные с помощью “Кодирование в Kebab case” в соответствии с соответствующим стандартом.

Ввод: ТекстРезультат: Текст

Текстовый ввод

Параметры инструмента

Примеры

Make a CSS custom-property name from a design token

The result can be prefixed with -- when used as a CSS custom property.

Ввод

PrimaryAccentColor

Expected answer

primary-accent-color
Попытка быть контекстно осведомленным
Off
Turn an acronym-bearing document title into a slug

Acronyms become lowercase words separated by hyphens.

Ввод

JSON API Reference

Expected answer

json-api-reference
Попытка быть контекстно осведомленным
Off
Normalize repeated separators in a release label

Repeated spaces, underscores and hyphens become single boundaries.

Ввод

  Release__Notes---2026  

Expected answer

release-notes-2026
Попытка быть контекстно осведомленным
Off
Convert an accented article title into an ASCII slug

Accent removal is useful for this slug; it does not preserve the original spelling.

Ввод

Crème brûlée recipe

Expected answer

creme-brulee-recipe
Попытка быть контекстно осведомленным
Off
Transform separate tokens while retaining a quoted label

The output is a text transformation, not automatically valid source code.

Ввод

backgroundColor: "Keep_This"; fontSize: 16;

Expected answer

background-color: "Keep_This"; font-size: 16;
Попытка быть контекстно осведомленным
On
To Kebab case (dumb)

Ввод

hello world

Expected answer

hello-world
Попытка быть контекстно осведомленным
Off
To Kebab case (smart)

Ввод

test='hello'
echo $test
aKebabCaseFunction
$aKebabCaseVariable;
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-kebab-case-function
$a-kebab-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)