getVersion() — tailwindcss Function Reference
Architecture documentation for the getVersion() function in renderer.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 24ee95a5_e2be_c8c1_f733_7b871f994b1c["getVersion()"] d325b2d7_3798_071e_9367_51571b6510df["header()"] d325b2d7_3798_071e_9367_51571b6510df -->|calls| 24ee95a5_e2be_c8c1_f733_7b871f994b1c e684d757_d361_5937_cefa_a0a7679db6f7["resolve()"] 24ee95a5_e2be_c8c1_f733_7b871f994b1c -->|calls| e684d757_d361_5937_cefa_a0a7679db6f7 style 24ee95a5_e2be_c8c1_f733_7b871f994b1c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/@tailwindcss-cli/src/utils/renderer.ts lines 96–102
function getVersion(): string {
if (typeof globalThis.__tw_version === 'string') {
return globalThis.__tw_version
}
let { version } = JSON.parse(fs.readFileSync(resolve('tailwindcss/package.json'), 'utf-8'))
return version
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does getVersion() do?
getVersion() is a function in the tailwindcss codebase.
What does getVersion() call?
getVersion() calls 1 function(s): resolve.
What calls getVersion()?
getVersion() is called by 1 function(s): header.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free