programming-languagesnaming-conventionsterminologykebab-case

What's the name for hyphen-separated case?


This is PascalCase: SomeSymbol

This is camelCase: someSymbol

This is snake_case: some_symbol

So my questions is whether there is a widely accepted name for this: some-symbol? It's commonly used in url's.


Solution

  • This is known as dash-case or kebab-case.

    No other terms have achieved wide adoption, though there are various other coinings out there including hyphen-case, caterpillar-case, lisp-case, train-case, url-case, slug-case, and css-case.

    It seems kebab-case in particular has entered the lexicon of several javascript code libraries.