Home / Function/ getExtGlob() — astro Function Reference

getExtGlob() — astro Function Reference

Architecture documentation for the getExtGlob() function in utils.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  bf8a78bc_3533_8dd5_4471_47636ba6ae6e["getExtGlob()"]
  7a09e708_c090_71c0_8138_7343699b1865["utils.ts"]
  bf8a78bc_3533_8dd5_4471_47636ba6ae6e -->|defined in| 7a09e708_c090_71c0_8138_7343699b1865
  681405dc_44fb_0b21_802d_47dcdc4e75da["globWithUnderscoresIgnored()"]
  681405dc_44fb_0b21_802d_47dcdc4e75da -->|calls| bf8a78bc_3533_8dd5_4471_47636ba6ae6e
  style bf8a78bc_3533_8dd5_4471_47636ba6ae6e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/content/utils.ts lines 840–845

function getExtGlob(exts: string[]) {
	return exts.length === 1
		? // Wrapping {...} breaks when there is only one extension
			exts[0]
		: `{${exts.join(',')}}`;
}

Subdomains

Frequently Asked Questions

What does getExtGlob() do?
getExtGlob() is a function in the astro codebase, defined in packages/astro/src/content/utils.ts.
Where is getExtGlob() defined?
getExtGlob() is defined in packages/astro/src/content/utils.ts at line 840.
What calls getExtGlob()?
getExtGlob() is called by 1 function(s): globWithUnderscoresIgnored.

Analyze Your Own Codebase

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

Try Supermodel Free