Home / Function/ withVersion() — astro Function Reference

withVersion() — astro Function Reference

Architecture documentation for the withVersion() function in cli-debug-info-provider.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  e51ffa62_9faa_14b5_e58e_541ccaba657e["withVersion()"]
  ba2ed2e7_598d_d3c6_77bf_644cc65cf4d9["cli-debug-info-provider.ts"]
  e51ffa62_9faa_14b5_e58e_541ccaba657e -->|defined in| ba2ed2e7_598d_d3c6_77bf_644cc65cf4d9
  127a0d56_15dd_ef1b_0d10_bcb23419ac98["get()"]
  127a0d56_15dd_ef1b_0d10_bcb23419ac98 -->|calls| e51ffa62_9faa_14b5_e58e_541ccaba657e
  style e51ffa62_9faa_14b5_e58e_541ccaba657e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/cli/info/infra/cli-debug-info-provider.ts lines 6–12

function withVersion(name: string, version: string | undefined): string {
	let result = name;
	if (version) {
		result += ` (${version})`;
	}
	return result;
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does withVersion() do?
withVersion() is a function in the astro codebase, defined in packages/astro/src/cli/info/infra/cli-debug-info-provider.ts.
Where is withVersion() defined?
withVersion() is defined in packages/astro/src/cli/info/infra/cli-debug-info-provider.ts at line 6.
What calls withVersion()?
withVersion() is called by 1 function(s): get.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free