slugify() — supabase Function Reference
Architecture documentation for the slugify() function in helpers.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 7e2a975d_119f_f426_7a52_51cbbf5b2407["slugify()"] 0b86162b_2365_7a34_3bb2_7ad0c85ff06e["generateDocsIndexPage()"] 0b86162b_2365_7a34_3bb2_7ad0c85ff06e -->|calls| 7e2a975d_119f_f426_7a52_51cbbf5b2407 style 7e2a975d_119f_f426_7a52_51cbbf5b2407 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/generator/legacy/lib/helpers.ts lines 33–42
export const slugify = (text: string) => {
return text
.toString()
.toLowerCase()
.replace(/[. )(]/g, '-') // Replace spaces and brackets -
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
.replace(/\-\-+/g, '-') // Replace multiple - with single -
.replace(/^-+/, '') // Trim - from start of text
.replace(/-+$/, '') // Trim - from end of text
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does slugify() do?
slugify() is a function in the supabase codebase.
What calls slugify()?
slugify() is called by 1 function(s): generateDocsIndexPage.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free