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
  b589df59_9794_ee71_1a27_cef8a143cd7b["extractValue()"]
  84232925_f388_3f84_db95_7d674fc02190["extract-static-plugins.ts"]
  b589df59_9794_ee71_1a27_cef8a143cd7b -->|defined in| 84232925_f388_3f84_db95_7d674fc02190
  79d116f6_7ff2_5367_4672_ab907f2a77dc["findStaticPlugins()"]
  79d116f6_7ff2_5367_4672_ab907f2a77dc -->|calls| b589df59_9794_ee71_1a27_cef8a143cd7b
  style b589df59_9794_ee71_1a27_cef8a143cd7b 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