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
  4cf39b1a_2fbd_f120_0973_e4c52da1d882["extractValue()"]
  69c92c68_5d52_a398_56aa_286ad1f8d262["findStaticPlugins()"]
  69c92c68_5d52_a398_56aa_286ad1f8d262 -->|calls| 4cf39b1a_2fbd_f120_0973_e4c52da1d882
  style 4cf39b1a_2fbd_f120_0973_e4c52da1d882 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.
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