Home / Function/ normalizeSlug() — supabase Function Reference

normalizeSlug() — supabase Function Reference

Architecture documentation for the normalizeSlug() function in get-next-page.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  d6535fbd_6a76_7688_ffe1_473fd62b482c["normalizeSlug()"]
  5e15b528_e99b_9fad_c426_e91684a3fcbf["getCurrentChapter()"]
  5e15b528_e99b_9fad_c426_e91684a3fcbf -->|calls| d6535fbd_6a76_7688_ffe1_473fd62b482c
  9cb78d4b_2172_d6ab_70f8_56230d9462ce["getNextPage()"]
  9cb78d4b_2172_d6ab_70f8_56230d9462ce -->|calls| d6535fbd_6a76_7688_ffe1_473fd62b482c
  style d6535fbd_6a76_7688_ffe1_473fd62b482c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/learn/lib/get-next-page.ts lines 28–30

export function normalizeSlug(slug: string): string {
  return slug.replace(/^\//, '').toLowerCase()
}

Subdomains

Frequently Asked Questions

What does normalizeSlug() do?
normalizeSlug() is a function in the supabase codebase.
What calls normalizeSlug()?
normalizeSlug() is called by 2 function(s): getCurrentChapter, getNextPage.

Analyze Your Own Codebase

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

Try Supermodel Free