slugify() — supabase Function Reference
Architecture documentation for the slugify() function in helpers.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 0c8ff3ed_1529_8bf0_0c66_fe7b4584873f["slugify()"] ed861eff_c31c_7ffc_754a_851706ec4946["gen_v3()"] ed861eff_c31c_7ffc_754a_851706ec4946 -->|calls| 0c8ff3ed_1529_8bf0_0c66_fe7b4584873f style 0c8ff3ed_1529_8bf0_0c66_fe7b4584873f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/lib/refGenerator/helpers.ts lines 277–287
const slugify = (text: string) => {
if (!text) return ''
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): gen_v3.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free