I am creating a Discord bot using Node and Discord.js and I want to show the uptime in the console but... I want it to continuously change as time changes.
I have tried and have succeeded in the past of making some loop using process.stdout.write but I can't remember how.
I have tried...
process.stdout.write(process.uptime());
process.stdout.clear();
and it didn't work.
I expect the uptime of the process to show up in the console as...
Uptime: 0D 0H 0M 1S
and as time changes is I want it to update that line and not make another.