2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-23 09:54:28 -06:00
Jon Moss 613cdcaf0b Update Readme docs
Adding element rendered the editor; otherwise editor wouldn't render for me.
2015-08-11 16:19:25 +01:00

10 lines
264 B
JavaScript

var chalk = require('chalk');
var dateformat = require('dateformat');
module.exports = function(){
var time = '['+chalk.grey(dateformat(new Date(), 'HH:MM:ss'))+']';
process.stdout.write(time + ' ');
console.log.apply(console, arguments);
return this;
};