const DEBUG = (function() { const timestamp = function(){}; timestamp.toString = () => "[DEBUG " + new Date().toLocaleDateString() + "]"; return { log: console.log.bind(console, "%s", timestamp) }; })(); module.exports = { DEBUG }