Home / Function/ getVersion() — tailwindcss Function Reference

getVersion() — tailwindcss Function Reference

Architecture documentation for the getVersion() function in renderer.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  eac02491_fa93_302c_a120_87300dd08d65["getVersion()"]
  0e220b58_5412_f8b0_16d3_cedf60b8e3d4["header()"]
  0e220b58_5412_f8b0_16d3_cedf60b8e3d4 -->|calls| eac02491_fa93_302c_a120_87300dd08d65
  ad194d62_fb9b_47e0_d4ea_392978921dd9["resolve()"]
  eac02491_fa93_302c_a120_87300dd08d65 -->|calls| ad194d62_fb9b_47e0_d4ea_392978921dd9
  style eac02491_fa93_302c_a120_87300dd08d65 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/@tailwindcss-upgrade/src/utils/renderer.ts lines 134–140

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

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