Home / Function/ endsWithPageExt() — astro Function Reference

endsWithPageExt() — astro Function Reference

Architecture documentation for the endsWithPageExt() function in util.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  ac4cc111_775a_ab7f_53db_e8cd0aeee9b6["endsWithPageExt()"]
  a3824e79_205c_305b_a44f_edee1ef5faa4["util.ts"]
  ac4cc111_775a_ab7f_53db_e8cd0aeee9b6 -->|defined in| a3824e79_205c_305b_a44f_edee1ef5faa4
  dde926f7_9c30_abb1_62a9_3678f29d2c92["isPage()"]
  dde926f7_9c30_abb1_62a9_3678f29d2c92 -->|calls| ac4cc111_775a_ab7f_53db_e8cd0aeee9b6
  fa8579ea_f215_3452_2150_67519e6ea9cb["isEndpoint()"]
  fa8579ea_f215_3452_2150_67519e6ea9cb -->|calls| ac4cc111_775a_ab7f_53db_e8cd0aeee9b6
  style ac4cc111_775a_ab7f_53db_e8cd0aeee9b6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/util.ts lines 165–170

function endsWithPageExt(file: URL, settings: AstroSettings): boolean {
	for (const ext of settings.pageExtensions) {
		if (file.toString().endsWith(ext)) return true;
	}
	return false;
}

Domain

Subdomains

Frequently Asked Questions

What does endsWithPageExt() do?
endsWithPageExt() is a function in the astro codebase, defined in packages/astro/src/core/util.ts.
Where is endsWithPageExt() defined?
endsWithPageExt() is defined in packages/astro/src/core/util.ts at line 165.
What calls endsWithPageExt()?
endsWithPageExt() is called by 2 function(s): isEndpoint, isPage.

Analyze Your Own Codebase

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

Try Supermodel Free