normalizePath() — tailwindcss Function Reference
Architecture documentation for the normalizePath() function in normalize-path.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD df397cc3_5766_b5b5_66f1_04e0e5873574["normalizePath()"] 342c0afc_3173_535b_9e25_ef41f6768585["normalize-path.ts"] df397cc3_5766_b5b5_66f1_04e0e5873574 -->|defined in| 342c0afc_3173_535b_9e25_ef41f6768585 fa6eaba6_9ce1_3f40_275c_1ab85a97a856["rewriteUrls()"] fa6eaba6_9ce1_3f40_275c_1ab85a97a856 -->|calls| df397cc3_5766_b5b5_66f1_04e0e5873574 0ca5b8d3_5f4b_b978_a42f_1a4289d904b8["relativeToStylesheet()"] 0ca5b8d3_5f4b_b978_a42f_1a4289d904b8 -->|calls| df397cc3_5766_b5b5_66f1_04e0e5873574 a4dc036d_4e5e_3840_615b_adda0567006d["normalizePathBase()"] df397cc3_5766_b5b5_66f1_04e0e5873574 -->|calls| a4dc036d_4e5e_3840_615b_adda0567006d style df397cc3_5766_b5b5_66f1_04e0e5873574 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, defined in packages/@tailwindcss-node/src/normalize-path.ts.
Where is normalizePath() defined?
normalizePath() is defined in packages/@tailwindcss-node/src/normalize-path.ts at line 33.
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