How to get the uptime of the system using Node.js?
Originally Published Here ๐!
To get the uptime of the system, you can use the uptime() method from the os module in Node.js.
/* Get uptime of system Node.js */
// import os module
const os = require("os");
// get the uptime of system
const uptime ...
melvingeorge-me.hashnode.dev1 min read