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