startsWithDotDotSlash() — astro Function Reference
Architecture documentation for the startsWithDotDotSlash() function in path.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 746a53b9_c178_e77a_bc98_3e8875d70288["startsWithDotDotSlash()"] f5377c99_3ce3_1abd_148f_93394ff5efe2["path.ts"] 746a53b9_c178_e77a_bc98_3e8875d70288 -->|defined in| f5377c99_3ce3_1abd_148f_93394ff5efe2 497dc923_5593_80e9_8996_d7b005b41332["isRelativePath()"] 497dc923_5593_80e9_8996_d7b005b41332 -->|calls| 746a53b9_c178_e77a_bc98_3e8875d70288 style 746a53b9_c178_e77a_bc98_3e8875d70288 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/internal-helpers/src/path.ts lines 43–48
function startsWithDotDotSlash(path: string) {
const c1 = path[0];
const c2 = path[1];
const c3 = path[2];
return c1 === '.' && c2 === '.' && c3 === '/';
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does startsWithDotDotSlash() do?
startsWithDotDotSlash() is a function in the astro codebase, defined in packages/internal-helpers/src/path.ts.
Where is startsWithDotDotSlash() defined?
startsWithDotDotSlash() is defined in packages/internal-helpers/src/path.ts at line 43.
What calls startsWithDotDotSlash()?
startsWithDotDotSlash() is called by 1 function(s): isRelativePath.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free