MCPcopy Index your code
hub / github.com/ComposioHQ/composio / to_kebab_case

Function to_kebab_case

python/scripts/generate-docs.py:105–108  ·  view source on GitHub ↗

Convert PascalCase to kebab-case.

(name: str)

Source from the content-addressed store, hash-verified

103
104
105def to_kebab_case(name: str) -> str:
106 """Convert PascalCase to kebab-case."""
107 s1 = re.sub("(.)([A-Z][a-z]+)", r"\1-\2", name)
108 return re.sub("([a-z0-9])([A-Z])", r"\1-\2", s1).lower()
109
110
111def display_name_for(class_name: str) -> str:

Callers 2

slug_forFunction · 0.85
generate_class_mdxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…