Home / Function/ toKebabCase() — supabase Function Reference

toKebabCase() — supabase Function Reference

Architecture documentation for the toKebabCase() function in toKebabCase.ts from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/cms/src/utilities/toKebabCase.ts lines 1–5

export const toKebabCase = (string: string): string =>
  string
    ?.replace(/([a-z])([A-Z])/g, '$1-$2')
    .replace(/\s+/g, '-')
    .toLowerCase()

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free