slash() — astro Function Reference
Architecture documentation for the slash() function in utils.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD d90421e9_e990_a7bb_5775_9589dc533165["slash()"] 99e40dcb_3c3c_9f4c_eb6e_551c6ac52da6["utils.ts"] d90421e9_e990_a7bb_5775_9589dc533165 -->|defined in| 99e40dcb_3c3c_9f4c_eb6e_551c6ac52da6 0890e718_9883_b038_815b_9a65c3fb181a["pathToFileURL()"] 0890e718_9883_b038_815b_9a65c3fb181a -->|calls| d90421e9_e990_a7bb_5775_9589dc533165 style d90421e9_e990_a7bb_5775_9589dc533165 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/db/src/runtime/utils.ts lines 19–27
function slash(path: string) {
const isExtendedLengthPath = path.startsWith('\\\\?\\');
if (isExtendedLengthPath) {
return path;
}
return path.replace(/\\/g, '/');
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does slash() do?
slash() is a function in the astro codebase, defined in packages/db/src/runtime/utils.ts.
Where is slash() defined?
slash() is defined in packages/db/src/runtime/utils.ts at line 19.
What calls slash()?
slash() is called by 1 function(s): pathToFileURL.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free