normalizePath() — tailwindcss Function Reference
Architecture documentation for the normalizePath() function in normalize-path.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD d00d78c4_d3a9_d8f8_31c1_110fc660f105["normalizePath()"] fe420c64_fc5d_8de5_0c9f_c3e614f856a9["rewriteUrls()"] fe420c64_fc5d_8de5_0c9f_c3e614f856a9 -->|calls| d00d78c4_d3a9_d8f8_31c1_110fc660f105 22f11d7f_1406_3124_fbe8_c62553e40db9["relativeToStylesheet()"] 22f11d7f_1406_3124_fbe8_c62553e40db9 -->|calls| d00d78c4_d3a9_d8f8_31c1_110fc660f105 33c2c092_3617_d6cb_4dd3_fe7816312546["normalizePathBase()"] d00d78c4_d3a9_d8f8_31c1_110fc660f105 -->|calls| 33c2c092_3617_d6cb_4dd3_fe7816312546 style d00d78c4_d3a9_d8f8_31c1_110fc660f105 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-node/src/normalize-path.ts lines 33–47
export function normalizePath(originalPath: string) {
let normalized = normalizePathBase(originalPath)
// Make sure Windows network share paths are normalized properly
// They have to begin with two slashes or they won't resolve correctly
if (
originalPath.startsWith('\\\\') &&
normalized.startsWith('/') &&
!normalized.startsWith('//')
) {
return `/${normalized}`
}
return normalized
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does normalizePath() do?
normalizePath() is a function in the tailwindcss codebase.
What does normalizePath() call?
normalizePath() calls 1 function(s): normalizePathBase.
What calls normalizePath()?
normalizePath() is called by 2 function(s): relativeToStylesheet, rewriteUrls.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free