Home / Function/ extractValue() — tailwindcss Function Reference

extractValue() — tailwindcss Function Reference

Architecture documentation for the extractValue() function in extract-static-plugins.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  ebe93479_82fa_7ad0_27a0_0015b31a0c46["extractValue()"]
  a6c81756_7ac7_5a3a_7275_d3632db70ea4["extract-static-plugins.ts"]
  ebe93479_82fa_7ad0_27a0_0015b31a0c46 -->|defined in| a6c81756_7ac7_5a3a_7275_d3632db70ea4
  7251786a_fd41_beea_80b3_e558e273b171["findStaticPlugins()"]
  7251786a_fd41_beea_80b3_e558e273b171 -->|calls| ebe93479_82fa_7ad0_27a0_0015b31a0c46
  style ebe93479_82fa_7ad0_27a0_0015b31a0c46 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/@tailwindcss-upgrade/src/utils/extract-static-plugins.ts lines 372–382

function extractValue(capture: { name: string; node: { text: string } }) {
  return capture.name === 'num_value'
    ? parseFloat(capture.node.text)
    : capture.name === 'null_value'
      ? null
      : capture.name === 'true_value'
        ? true
        : capture.name === 'false_value'
          ? false
          : capture.node.text
}

Subdomains

Frequently Asked Questions

What does extractValue() do?
extractValue() is a function in the tailwindcss codebase, defined in packages/@tailwindcss-upgrade/src/utils/extract-static-plugins.ts.
Where is extractValue() defined?
extractValue() is defined in packages/@tailwindcss-upgrade/src/utils/extract-static-plugins.ts at line 372.
What calls extractValue()?
extractValue() is called by 1 function(s): findStaticPlugins.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free