Home / Function/ isLocalFile() — ui Function Reference

isLocalFile() — ui Function Reference

Architecture documentation for the isLocalFile() function in utils.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  fe7f4163_7b5c_8e6e_fb28_4db1891f64b4["isLocalFile()"]
  edc2979a_e040_ab0c_5174_c69f7c8fa905["utils.ts"]
  fe7f4163_7b5c_8e6e_fb28_4db1891f64b4 -->|defined in| edc2979a_e040_ab0c_5174_c69f7c8fa905
  ef860c53_bcca_c729_b5d1_a490f284253c["isUrl()"]
  fe7f4163_7b5c_8e6e_fb28_4db1891f64b4 -->|calls| ef860c53_bcca_c729_b5d1_a490f284253c
  style fe7f4163_7b5c_8e6e_fb28_4db1891f64b4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/shadcn/src/registry/utils.ts lines 264–266

export function isLocalFile(path: string) {
  return path.endsWith(".json") && !isUrl(path)
}

Subdomains

Calls

Frequently Asked Questions

What does isLocalFile() do?
isLocalFile() is a function in the ui codebase, defined in packages/shadcn/src/registry/utils.ts.
Where is isLocalFile() defined?
isLocalFile() is defined in packages/shadcn/src/registry/utils.ts at line 264.
What does isLocalFile() call?
isLocalFile() calls 1 function(s): isUrl.

Analyze Your Own Codebase

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

Try Supermodel Free