Home / Function/ isRelativePath() — astro Function Reference

isRelativePath() — astro Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

packages/internal-helpers/src/path.ts lines 56–58

export function isRelativePath(path: string) {
	return startsWithDotDotSlash(path) || startsWithDotSlash(path);
}

Domain

Subdomains

Frequently Asked Questions

What does isRelativePath() do?
isRelativePath() is a function in the astro codebase, defined in packages/internal-helpers/src/path.ts.
Where is isRelativePath() defined?
isRelativePath() is defined in packages/internal-helpers/src/path.ts at line 56.
What does isRelativePath() call?
isRelativePath() calls 2 function(s): startsWithDotDotSlash, startsWithDotSlash.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free