getVersion() — tailwindcss Function Reference
Architecture documentation for the getVersion() function in renderer.ts from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD a5ffc6ab_7373_3f66_c98c_085483a3329c["getVersion()"] cc1a3f06_4b21_684c_487a_f342bd18d772["renderer.ts"] a5ffc6ab_7373_3f66_c98c_085483a3329c -->|defined in| cc1a3f06_4b21_684c_487a_f342bd18d772 e596cbd7_5ac3_bb1f_974c_17f3c797c49f["header()"] e596cbd7_5ac3_bb1f_974c_17f3c797c49f -->|calls| a5ffc6ab_7373_3f66_c98c_085483a3329c 979748f4_859b_1f86_264d_addfd15b3c5b["resolve()"] a5ffc6ab_7373_3f66_c98c_085483a3329c -->|calls| 979748f4_859b_1f86_264d_addfd15b3c5b style a5ffc6ab_7373_3f66_c98c_085483a3329c 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, defined in packages/@tailwindcss-cli/src/utils/renderer.ts.
Where is getVersion() defined?
getVersion() is defined in packages/@tailwindcss-cli/src/utils/renderer.ts at line 96.
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