parseIntegrationName() — astro Function Reference
Architecture documentation for the parseIntegrationName() function in index.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD f68e7235_000e_755e_ddd2_771a306eb9c9["parseIntegrationName()"] 9151bb3d_ee1e_da42_752a_45a9db1dd918["index.ts"] f68e7235_000e_755e_ddd2_771a306eb9c9 -->|defined in| 9151bb3d_ee1e_da42_752a_45a9db1dd918 ffb00280_f878_7381_fa3f_c64fddb70bbc["validateIntegrations()"] ffb00280_f878_7381_fa3f_c64fddb70bbc -->|calls| f68e7235_000e_755e_ddd2_771a306eb9c9 style f68e7235_000e_755e_ddd2_771a306eb9c9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/cli/add/index.ts lines 1123–1137
function parseIntegrationName(spec: string) {
const result = parseNpmName(spec);
if (!result) return;
let { scope, name } = result;
let tag = 'latest';
if (scope) {
name = name.replace(scope + '/', '');
}
if (name.includes('@')) {
const tagged = name.split('@');
name = tagged[0];
tag = tagged[1];
}
return { scope, name, tag };
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does parseIntegrationName() do?
parseIntegrationName() is a function in the astro codebase, defined in packages/astro/src/cli/add/index.ts.
Where is parseIntegrationName() defined?
parseIntegrationName() is defined in packages/astro/src/cli/add/index.ts at line 1123.
What calls parseIntegrationName()?
parseIntegrationName() is called by 1 function(s): validateIntegrations.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free