UNPKG

log-timestamp-moment

Version:

Prepend timestamps to functions like console.log, console.warn, etc

9 lines (6 loc) 189 B
#!/usr/bin/env node require('../'); ['debug', 'log', 'info', 'warn', 'error'].forEach(function(k) { process.stdout.write('Testing ' + k + '\n'); console[k]('Hello %s!', 'world'); });