Home / Function/ posixRelative() — astro Function Reference

posixRelative() — astro Function Reference

Architecture documentation for the posixRelative() function in utils.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  28760982_e892_6fa9_cf91_b1855a1c14f5["posixRelative()"]
  7a09e708_c090_71c0_8138_7343699b1865["utils.ts"]
  28760982_e892_6fa9_cf91_b1855a1c14f5 -->|defined in| 7a09e708_c090_71c0_8138_7343699b1865
  ed2d8995_fedf_af5c_d6be_7c1ed259ad5c["posixifyPath()"]
  28760982_e892_6fa9_cf91_b1855a1c14f5 -->|calls| ed2d8995_fedf_af5c_d6be_7c1ed259ad5c
  style 28760982_e892_6fa9_cf91_b1855a1c14f5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/content/utils.ts lines 875–877

export function posixRelative(from: string, to: string) {
	return posixifyPath(path.relative(from, to));
}

Subdomains

Frequently Asked Questions

What does posixRelative() do?
posixRelative() is a function in the astro codebase, defined in packages/astro/src/content/utils.ts.
Where is posixRelative() defined?
posixRelative() is defined in packages/astro/src/content/utils.ts at line 875.
What does posixRelative() call?
posixRelative() calls 1 function(s): posixifyPath.

Analyze Your Own Codebase

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

Try Supermodel Free