info() — astro Function Reference
Architecture documentation for the info() function in messages.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 38c41e12_b002_2fb9_6943_a1eadb33cecb["info()"] d28938aa_d420_d4d1_6b36_01f3df03707d["messages.ts"] 38c41e12_b002_2fb9_6943_a1eadb33cecb -->|defined in| d28938aa_d420_d4d1_6b36_01f3df03707d ac3298d6_0c78_5a80_8fb7_ec8acfacd90c["log()"] 38c41e12_b002_2fb9_6943_a1eadb33cecb -->|calls| ac3298d6_0c78_5a80_8fb7_ec8acfacd90c style 38c41e12_b002_2fb9_6943_a1eadb33cecb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/upgrade/src/messages.ts lines 100–111
export const info = async (prefix: string, text: string, version = '') => {
const length = 11 + prefix.length + text.length + version?.length;
const symbol = '◼';
if (length > stdout.columns) {
log(`${' '.repeat(5)} ${color.cyan(symbol)} ${prefix}`);
log(`${' '.repeat(9)}${color.dim(text)} ${color.reset(version)}`);
} else {
log(
`${' '.repeat(5)} ${color.cyan(symbol)} ${prefix} ${color.dim(text)} ${color.reset(version)}`,
);
}
};
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does info() do?
info() is a function in the astro codebase, defined in packages/upgrade/src/messages.ts.
Where is info() defined?
info() is defined in packages/upgrade/src/messages.ts at line 100.
What does info() call?
info() calls 1 function(s): log.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free