Home / Function/ appendExtension() — astro Function Reference

appendExtension() — astro Function Reference

Architecture documentation for the appendExtension() function in path.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  27191b15_89d5_870c_5732_61311d34ba48["appendExtension()"]
  f5377c99_3ce3_1abd_148f_93394ff5efe2["path.ts"]
  27191b15_89d5_870c_5732_61311d34ba48 -->|defined in| f5377c99_3ce3_1abd_148f_93394ff5efe2
  style 27191b15_89d5_870c_5732_61311d34ba48 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/internal-helpers/src/path.ts lines 6–8

export function appendExtension(path: string, extension: string) {
	return path + '.' + extension;
}

Domain

Subdomains

Frequently Asked Questions

What does appendExtension() do?
appendExtension() is a function in the astro codebase, defined in packages/internal-helpers/src/path.ts.
Where is appendExtension() defined?
appendExtension() is defined in packages/internal-helpers/src/path.ts at line 6.

Analyze Your Own Codebase

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

Try Supermodel Free