getFileMeta() — ui Function Reference
Architecture documentation for the getFileMeta() function in registry.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 0657e55f_4db1_fbf1_7517_70374cad1f6d["getFileMeta()"] c2827044_b928_a1b2_3033_3282c0588350["registry.ts"] 0657e55f_4db1_fbf1_7517_70374cad1f6d -->|defined in| c2827044_b928_a1b2_3033_3282c0588350 9ad02a82_006c_477a_ceba_832cde81fa46["getRegistryItem()"] 9ad02a82_006c_477a_ceba_832cde81fa46 -->|calls| 0657e55f_4db1_fbf1_7517_70374cad1f6d bdf372b3_9618_3a39_a49c_1ed772fa59e1["createTempSourceFile()"] 0657e55f_4db1_fbf1_7517_70374cad1f6d -->|calls| bdf372b3_9618_3a39_a49c_1ed772fa59e1 3ca325a3_7196_0491_f780_d2139a24dee6["extractVariable()"] 0657e55f_4db1_fbf1_7517_70374cad1f6d -->|calls| 3ca325a3_7196_0491_f780_d2139a24dee6 style 0657e55f_4db1_fbf1_7517_70374cad1f6d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/lib/registry.ts lines 111–132
async function getFileMeta(filePath: string) {
const raw = await fs.readFile(filePath, "utf-8")
const project = new Project({
compilerOptions: {},
})
const tempFile = await createTempSourceFile(filePath)
const sourceFile = project.createSourceFile(tempFile, raw, {
scriptKind: ScriptKind.TSX,
})
const iframeHeight = extractVariable(sourceFile, "iframeHeight")
const containerClassName = extractVariable(sourceFile, "containerClassName")
const description = extractVariable(sourceFile, "description")
return {
iframeHeight,
containerClassName,
description,
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does getFileMeta() do?
getFileMeta() is a function in the ui codebase, defined in deprecated/www/lib/registry.ts.
Where is getFileMeta() defined?
getFileMeta() is defined in deprecated/www/lib/registry.ts at line 111.
What does getFileMeta() call?
getFileMeta() calls 2 function(s): createTempSourceFile, extractVariable.
What calls getFileMeta()?
getFileMeta() is called by 1 function(s): getRegistryItem.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free