hasFileExtension() — astro Function Reference
Architecture documentation for the hasFileExtension() function in path.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 68a283a6_9a09_1558_9a2e_0579630ae9aa["hasFileExtension()"] f5377c99_3ce3_1abd_148f_93394ff5efe2["path.ts"] 68a283a6_9a09_1558_9a2e_0579630ae9aa -->|defined in| f5377c99_3ce3_1abd_148f_93394ff5efe2 style 68a283a6_9a09_1558_9a2e_0579630ae9aa fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/internal-helpers/src/path.ts lines 243–245
export function hasFileExtension(path: string) {
return WITH_FILE_EXT.test(path);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does hasFileExtension() do?
hasFileExtension() is a function in the astro codebase, defined in packages/internal-helpers/src/path.ts.
Where is hasFileExtension() defined?
hasFileExtension() is defined in packages/internal-helpers/src/path.ts at line 243.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free