Home / Function/ startsWithDotSlash() — astro Function Reference

startsWithDotSlash() — astro Function Reference

Architecture documentation for the startsWithDotSlash() function in path.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  972e731e_8dd5_60be_7cb7_0ff9f6d3b444["startsWithDotSlash()"]
  f5377c99_3ce3_1abd_148f_93394ff5efe2["path.ts"]
  972e731e_8dd5_60be_7cb7_0ff9f6d3b444 -->|defined in| f5377c99_3ce3_1abd_148f_93394ff5efe2
  497dc923_5593_80e9_8996_d7b005b41332["isRelativePath()"]
  497dc923_5593_80e9_8996_d7b005b41332 -->|calls| 972e731e_8dd5_60be_7cb7_0ff9f6d3b444
  style 972e731e_8dd5_60be_7cb7_0ff9f6d3b444 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/internal-helpers/src/path.ts lines 50–54

function startsWithDotSlash(path: string) {
	const c1 = path[0];
	const c2 = path[1];
	return c1 === '.' && c2 === '/';
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does startsWithDotSlash() do?
startsWithDotSlash() is a function in the astro codebase, defined in packages/internal-helpers/src/path.ts.
Where is startsWithDotSlash() defined?
startsWithDotSlash() is defined in packages/internal-helpers/src/path.ts at line 50.
What calls startsWithDotSlash()?
startsWithDotSlash() 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