Npm debug module not working
I need to use a debug module to replace my console.log s in my node application. I am installing a debug module in my application using the following command.
npm install debug
Then I initialize the debug variable. I am trying to print some information as shown below.
var debug = require('debug')('http');
debug('debug information');
but nothing is displayed in the terminal. Any help would be greatly appreciated.
+3
source to share