February 2025posted on 02.24.2025Add color using FORCE_COLOR Node.js supports the FORCE_COLOR environment variable to force color in the terminal output. FORCE_COLOR=0 // 2 colors (no color) FORCE_COLOR=1 // 16 colors FORCE_COLOR=2 // 256 colors FORCE_COLOR=3 // 16,777,216 colors Color is automatically disabled when a process is piping output into another process. Use FORCE_COLOR to force color in the piped output.No reactions yet
Add color using FORCE_COLOR
Node.js supports the
FORCE_COLORenvironment variable to force color in the terminal output.Color is automatically disabled when a process is piping output into another process. Use
FORCE_COLORto force color in the piped output.