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
  5d4ff5f9_ab41_7f66_e07a_a17512f133e1["getVersion()"]
  58321b25_a96b_8ff4_8d29_54842f605720["header()"]
  58321b25_a96b_8ff4_8d29_54842f605720 -->|calls| 5d4ff5f9_ab41_7f66_e07a_a17512f133e1
  697cfe7d_423c_c134_ff12_e003e7caa435["resolve()"]
  5d4ff5f9_ab41_7f66_e07a_a17512f133e1 -->|calls| 697cfe7d_423c_c134_ff12_e003e7caa435
  style 5d4ff5f9_ab41_7f66_e07a_a17512f133e1 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

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