Home / Function/ format() — supabase Function Reference

format() — supabase Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  e60d94c3_9b24_1993_8dae_3d4dc9f7b96a["format()"]
  8c406d49_e978_73ab_cb83_5265324c1527["formatSlug()"]
  8c406d49_e978_73ab_cb83_5265324c1527 -->|calls| e60d94c3_9b24_1993_8dae_3d4dc9f7b96a
  style e60d94c3_9b24_1993_8dae_3d4dc9f7b96a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/cms/src/hooks/formatSlug.ts lines 3–7

const format = (val: string): string =>
  val
    .replace(/ /g, '-')
    .replace(/[^\w-]+/g, '')
    .toLowerCase()

Subdomains

Called By

Frequently Asked Questions

What does format() do?
format() is a function in the supabase codebase.
What calls format()?
format() is called by 1 function(s): formatSlug.

Analyze Your Own Codebase

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

Try Supermodel Free