Codifica come Kebab case

Codifica l'input con “Codifica come Kebab case” secondo lo standard corrispondente.

Input: TestoRisultato: Testo

Inserimento di testo

Opzioni

Esempi

Make a CSS custom-property name from a design token

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

Input

PrimaryAccentColor

Expected answer

primary-accent-color
Tentativo di essere consapevole del contesto
Off
Turn an acronym-bearing document title into a slug

Acronyms become lowercase words separated by hyphens.

Input

JSON API Reference

Expected answer

json-api-reference
Tentativo di essere consapevole del contesto
Off
Normalize repeated separators in a release label

Repeated spaces, underscores and hyphens become single boundaries.

Input

  Release__Notes---2026  

Expected answer

release-notes-2026
Tentativo di essere consapevole del contesto
Off
Convert an accented article title into an ASCII slug

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

Input

Crème brûlée recipe

Expected answer

creme-brulee-recipe
Tentativo di essere consapevole del contesto
Off
Transform separate tokens while retaining a quoted label

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

Input

backgroundColor: "Keep_This"; fontSize: 16;

Expected answer

background-color: "Keep_This"; font-size: 16;
Tentativo di essere consapevole del contesto
On
To Kebab case (dumb)

Input

hello world

Expected answer

hello-world
Tentativo di essere consapevole del contesto
Off
To Kebab case (smart)

Input

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");
}
Tentativo di essere consapevole del contesto
On

Parametri

ParametroValore predefinitoInput e opzioni
Tentativo di essere consapevole del contestofalseAttivo o disattivo

Strumenti correlati

Riordino del codice

Riferimento dell’operazione

Vedi la documentazione tecnica originale (English)