format-version.ts — astro Source File
Architecture documentation for format-version.ts, a typescript file in the astro codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 08bf28d8_4aee_3584_835f_39a0aee5eec5["format-version.ts"] 7db42c05_e873_0887_a39f_34451c181149["../definitions.js"] 08bf28d8_4aee_3584_835f_39a0aee5eec5 --> 7db42c05_e873_0887_a39f_34451c181149 style 08bf28d8_4aee_3584_835f_39a0aee5eec5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import type { AstroVersionProvider, TextStyler } from '../definitions.js';
interface Options {
name: string;
textStyler: TextStyler;
astroVersionProvider: AstroVersionProvider;
}
export function formatVersion({ name, textStyler, astroVersionProvider }: Options) {
return ` ${textStyler.bgGreen(textStyler.black(` ${name} `))} ${textStyler.green(
`v${astroVersionProvider.version}`,
)}`;
}
Domain
Subdomains
Functions
Types
Dependencies
- ../definitions.js
Source
Frequently Asked Questions
What does format-version.ts do?
format-version.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, RenderingEngine subdomain.
What functions are defined in format-version.ts?
format-version.ts defines 1 function(s): formatVersion.
What does format-version.ts depend on?
format-version.ts imports 1 module(s): ../definitions.js.
Where is format-version.ts in the architecture?
format-version.ts is located at packages/astro/src/cli/utils/format-version.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/astro/src/cli/utils).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free