isNpmPackageName() — astro Function Reference
Architecture documentation for the isNpmPackageName() function in config.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD dd11ee4d_17ea_4b9f_5445_c23ee876a177["isNpmPackageName()"] 52b07c51_0c97_ccad_b66e_5d6344c6252a["config.ts"] dd11ee4d_17ea_4b9f_5445_c23ee876a177 -->|defined in| 52b07c51_0c97_ccad_b66e_5d6344c6252a c04d6741_4545_164f_02cd_2c493eb6d274["component()"] c04d6741_4545_164f_02cd_2c493eb6d274 -->|calls| dd11ee4d_17ea_4b9f_5445_c23ee876a177 style dd11ee4d_17ea_4b9f_5445_c23ee876a177 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/markdoc/src/config.ts lines 51–53
function isNpmPackageName(pathname: string) {
return !isRelativePath(pathname) && !pathname.startsWith('/');
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does isNpmPackageName() do?
isNpmPackageName() is a function in the astro codebase, defined in packages/integrations/markdoc/src/config.ts.
Where is isNpmPackageName() defined?
isNpmPackageName() is defined in packages/integrations/markdoc/src/config.ts at line 51.
What calls isNpmPackageName()?
isNpmPackageName() is called by 1 function(s): component.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free