Home / Function/ getNodeAttributeByName() — supabase Function Reference

getNodeAttributeByName() — supabase Function Reference

Architecture documentation for the getNodeAttributeByName() function in rehype-component.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  74eb8725_5912_5751_740c_b3c8d06842bd["getNodeAttributeByName()"]
  a71fbe19_1686_9a27_a797_c6a880ab3ca6["rehypeComponent()"]
  a71fbe19_1686_9a27_a797_c6a880ab3ca6 -->|calls| 74eb8725_5912_5751_740c_b3c8d06842bd
  c86e4773_fd0c_baae_3ad4_6b5af8d685ba["getComponentSourceFileContent()"]
  c86e4773_fd0c_baae_3ad4_6b5af8d685ba -->|calls| 74eb8725_5912_5751_740c_b3c8d06842bd
  style 74eb8725_5912_5751_740c_b3c8d06842bd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/design-system/lib/rehype-component.ts lines 331–333

function getNodeAttributeByName(node: UnistNode, name: string) {
  return node.attributes?.find((attribute) => attribute.name === name)
}

Domain

Subdomains

Frequently Asked Questions

What does getNodeAttributeByName() do?
getNodeAttributeByName() is a function in the supabase codebase.
What calls getNodeAttributeByName()?
getNodeAttributeByName() is called by 2 function(s): getComponentSourceFileContent, rehypeComponent.

Analyze Your Own Codebase

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

Try Supermodel Free