env.ts — tailwindcss Source File
Architecture documentation for env.ts, a typescript file in the tailwindcss codebase. 0 imports, 2 dependents.
Entity Profile
Dependency Diagram
graph LR e9df710b_baf8_da14_76dd_1e58ee266e35["env.ts"] 1ee4f1b9_e59b_57be_c019_31a05219d060["index.ts"] 1ee4f1b9_e59b_57be_c019_31a05219d060 --> e9df710b_baf8_da14_76dd_1e58ee266e35 5fc79c14_9f7d_c655_5020_3326a9635c4a["instrumentation.ts"] 5fc79c14_9f7d_c655_5020_3326a9635c4a --> e9df710b_baf8_da14_76dd_1e58ee266e35 style e9df710b_baf8_da14_76dd_1e58ee266e35 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
export const DEBUG = resolveDebug(process.env.DEBUG)
function resolveDebug(debug: typeof process.env.DEBUG) {
if (typeof debug === 'boolean') {
return debug
}
if (debug === undefined) {
return false
}
// Environment variables are strings, so convert to boolean
if (debug === 'true' || debug === '1') {
return true
}
if (debug === 'false' || debug === '0') {
return false
}
// Keep the debug convention into account:
// DEBUG=* -> This enables all debug modes
// DEBUG=projectA,projectB,projectC -> This enables debug for projectA, projectB and projectC
// DEBUG=projectA:* -> This enables all debug modes for projectA (if you have sub-types)
// DEBUG=projectA,-projectB -> This enables debug for projectA and explicitly disables it for projectB
if (debug === '*') {
return true
}
let debuggers = debug.split(',').map((d) => d.split(':')[0])
// Ignoring tailwindcss
if (debuggers.includes('-tailwindcss')) {
return false
}
// Including tailwindcss
if (debuggers.includes('tailwindcss')) {
return true
}
return false
}
Domain
Subdomains
Functions
Imported By
Source
Frequently Asked Questions
What does env.ts do?
env.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the NodeBridge domain, NapiBinding subdomain.
What functions are defined in env.ts?
env.ts defines 1 function(s): resolveDebug.
What files import env.ts?
env.ts is imported by 2 file(s): index.ts, instrumentation.ts.
Where is env.ts in the architecture?
env.ts is located at packages/@tailwindcss-node/src/env.ts (domain: NodeBridge, subdomain: NapiBinding, directory: packages/@tailwindcss-node/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free