toImportName() — astro Function Reference
Architecture documentation for the toImportName() function in content-entry-type.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD e91e788b_1ac3_31f5_76f8_110b047e5249["toImportName()"] b46411b3_6535_0116_92ac_cd60b744df11["content-entry-type.ts"] e91e788b_1ac3_31f5_76f8_110b047e5249 -->|defined in| b46411b3_6535_0116_92ac_cd60b744df11 8445015d_9459_525c_ff94_499495ecda5a["getStringifiedImports()"] 8445015d_9459_525c_ff94_499495ecda5a -->|calls| e91e788b_1ac3_31f5_76f8_110b047e5249 e0e4cd3c_ee40_dc1a_eea2_14ca10d30f73["getStringifiedMap()"] e0e4cd3c_ee40_dc1a_eea2_14ca10d30f73 -->|calls| e91e788b_1ac3_31f5_76f8_110b047e5249 style e91e788b_1ac3_31f5_76f8_110b047e5249 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/markdoc/src/content-entry-type.ts lines 382–385
function toImportName(unsafeName: string) {
// TODO: more checks that name is a safe JS variable name
return unsafeName.replace('-', '_');
}
Domain
Subdomains
Source
Frequently Asked Questions
What does toImportName() do?
toImportName() is a function in the astro codebase, defined in packages/integrations/markdoc/src/content-entry-type.ts.
Where is toImportName() defined?
toImportName() is defined in packages/integrations/markdoc/src/content-entry-type.ts at line 382.
What calls toImportName()?
toImportName() is called by 2 function(s): getStringifiedImports, getStringifiedMap.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free