Home / Function/ appendForwardSlash() — astro Function Reference

appendForwardSlash() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  ce8c3869_e144_604f_1380_c3c27dc71951["appendForwardSlash()"]
  579be117_6aa8_f4e4_0e48_c4a41ab4204a["utils.ts"]
  ce8c3869_e144_604f_1380_c3c27dc71951 -->|defined in| 579be117_6aa8_f4e4_0e48_c4a41ab4204a
  b08b2af1_220d_e8ce_fa35_c6838e614f4e["getFileInfo()"]
  b08b2af1_220d_e8ce_fa35_c6838e614f4e -->|calls| ce8c3869_e144_604f_1380_c3c27dc71951
  style ce8c3869_e144_604f_1380_c3c27dc71951 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/mdx/src/utils.ts lines 9–11

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

Domain

Subdomains

Called By

Frequently Asked Questions

What does appendForwardSlash() do?
appendForwardSlash() is a function in the astro codebase, defined in packages/integrations/mdx/src/utils.ts.
Where is appendForwardSlash() defined?
appendForwardSlash() is defined in packages/integrations/mdx/src/utils.ts at line 9.
What calls appendForwardSlash()?
appendForwardSlash() is called by 1 function(s): getFileInfo.

Analyze Your Own Codebase

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

Try Supermodel Free