Answer the question
In order to leave comments, you need to log in
How to make output different color in debug?
DEBUG=error,info
const error = require('debug')('error')
const info = require('debug')('info')
error('from the worker')
info('from the worker')
Answer the question
In order to leave comments, you need to log in
look towards console escape sequences
or packages
https://www.npmjs.com/package/colors
https://www.npmjs.com/package/cli-color
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question