extended-console

Extends default console logging with various utilities.

extended-console

Extends default console logging with various utilities.

Features

  • Prepend timestamp to output using strftime
  • ...more to come!

Usage

require('extended-console');

console.log('Log away!');
console.extended.timestampFormat = '%B %d, %Y %H:%M:%S -';
console.log('This is a test');

Options

Options are located in the console.extended object.

  • showTimestamp (boolean) Whether to prepend a timestamp to output
  • timestampFormat (string) Format for timestamp. Uses strftime

License

MIT (see included LICENSE)