Home / Function/ appendForwardSlash() — astro Function Reference

appendForwardSlash() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d4571937_d638_60f3_9f40_6cef90ef9ba8["appendForwardSlash()"]
  f5377c99_3ce3_1abd_148f_93394ff5efe2["path.ts"]
  d4571937_d638_60f3_9f40_6cef90ef9ba8 -->|defined in| f5377c99_3ce3_1abd_148f_93394ff5efe2
  4525e360_2c67_0c4f_35df_a9eadf0f5b45["isParentDirectory()"]
  4525e360_2c67_0c4f_35df_a9eadf0f5b45 -->|calls| d4571937_d638_60f3_9f40_6cef90ef9ba8
  style d4571937_d638_60f3_9f40_6cef90ef9ba8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/internal-helpers/src/path.ts lines 10–12

export function appendForwardSlash(path: string) {
	return path.endsWith('/') ? path : path + '/';
}

Domain

Subdomains

Frequently Asked Questions

What does appendForwardSlash() do?
appendForwardSlash() is a function in the astro codebase, defined in packages/internal-helpers/src/path.ts.
Where is appendForwardSlash() defined?
appendForwardSlash() is defined in packages/internal-helpers/src/path.ts at line 10.
What calls appendForwardSlash()?
appendForwardSlash() is called by 1 function(s): isParentDirectory.

Analyze Your Own Codebase

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

Try Supermodel Free