Home / Function/ STANDALONE_BINARY() — tailwindcss Function Reference

STANDALONE_BINARY() — tailwindcss Function Reference

Architecture documentation for the STANDALONE_BINARY() function in index.test.ts from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  8b74aac3_b782_2bce_60bd_17c42d3bebfd["STANDALONE_BINARY()"]
  b45d6302_6e47_4739_6458_7a23608f0b01["index.test.ts"]
  8b74aac3_b782_2bce_60bd_17c42d3bebfd -->|defined in| b45d6302_6e47_4739_6458_7a23608f0b01
  style 8b74aac3_b782_2bce_60bd_17c42d3bebfd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

integrations/cli/index.test.ts lines 10–21

const STANDALONE_BINARY = (() => {
  switch (os.platform()) {
    case 'win32':
      return 'tailwindcss-windows-x64.exe'
    case 'darwin':
      return os.arch() === 'x64' ? 'tailwindcss-macos-x64' : 'tailwindcss-macos-arm64'
    case 'linux':
      return os.arch() === 'x64' ? 'tailwindcss-linux-x64' : 'tailwindcss-linux-arm64'
    default:
      throw new Error(`Unsupported platform: ${os.platform()} ${os.arch()}`)
  }
})()

Domain

Subdomains

Frequently Asked Questions

What does STANDALONE_BINARY() do?
STANDALONE_BINARY() is a function in the tailwindcss codebase, defined in integrations/cli/index.test.ts.
Where is STANDALONE_BINARY() defined?
STANDALONE_BINARY() is defined in integrations/cli/index.test.ts at line 10.

Analyze Your Own Codebase

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

Try Supermodel Free