Home / Function/ contentToCamelCase() — supabase Function Reference

contentToCamelCase() — supabase Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  4f351dec_7115_dee5_7274_ac4c8f41ac8b["contentToCamelCase()"]
  69ce9cdf_2251_a961_e540_8a99edaead0b["getCustomContent()"]
  69ce9cdf_2251_a961_e540_8a99edaead0b -->|calls| 4f351dec_7115_dee5_7274_ac4c8f41ac8b
  style 4f351dec_7115_dee5_7274_ac4c8f41ac8b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/lib/custom-content/getCustomContent.ts lines 15–21

function contentToCamelCase(feature: CustomContent) {
  return feature
    .replace(/:/g, '_')
    .split('_')
    .map((word, index) => (index === 0 ? word : word[0].toUpperCase() + word.slice(1)))
    .join('') as CustomContentToCamelCase<typeof feature>
}

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free