better-console
better-console copied to clipboard
#help Use "better-console" in each file without requiring in each file?
Is it possible to use 'better-console' in each file without having to waste a line in each file requiring it?
Maybe use the node Global object to override console
@mohsen1 Could you show an example?
something with -r flag?
@mohsen1 Could you show an example?
index.js
global.console = require('better-console');
// Now better console will be available in every file