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