Build a clock in your terminal that will display the time in ASCII art.
Steps:
It should look like this:
These docs should be enough to resolve the puzzle.
Less than 1 hour
Around 50
To clear your terminal, you can execute shell commands with the native child_process` module. There is a catch to be sure the command has been executed:
var spawn = require('child_process').spawn
var clear = function clear(cb) {
var out = spawn('clear', [], {stdio: 'inherit'})
out.on('close', cb)
}
To center the time in your terminal, you will need several things: the size of your terminal and the size of the text you display.
process.stdout object. Run node -p 'process.stdout' and see what you can use.\n. If you split the string into an array, you'll get the number of lines and the number of characters per line. Math will be your friend from here.