A shim for the global console object. It will do nothing if the console object exists
npm i --save shim-console
// at the entry point of your app
require('shim-console').init();
// now you can just do
// console.log, console.debug, etc
// on environment that don't provide the
// console object (probably only ie9 at this time)