Node.js-specific utilities and runtime functionality for Tailwind CSS v4, providing compilation tools, module dependency analysis, source map handling, path normalization, and optimization utilities.
Utility to decide whether debug-style instrumentation should run based on the DEBUG environment flag patterns recognized by Tailwind's Node tooling.
true, 1) as enabling debug output for the default Tailwind namespace, and falsy values (false, 0) as disabling it. @test* enables all namespaces while -tailwindcss disables the default one even when combined. @testwebpack) unless they include the Tailwind namespace or a wildcard. @test@generates
The implementation should delegate DEBUG pattern interpretation to the dependency instead of re-implementing pattern parsing, and it should fall back to process.env.DEBUG when no override is provided.
export interface DebugGateOptions {
/** Optional override for the DEBUG flag value, primarily for testing. */
debugFlag?: string | undefined | null;
}
/**
* Determine whether debug output should be active for Tailwind operations
* according to the DEBUG environment flag semantics.
*/
export function shouldEnableDebug(options?: DebugGateOptions): boolean;Provides environment-aware DEBUG flag parsing for Tailwind CSS tooling.
tessl i tessl/npm-tailwindcss--node@4.1.0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10