Как скомпилировать код Node.js в Ruby
Как можно скомпилировать\выполнить код из nodejs в ruby. Знаю что есть execjs, но что то не получается) вот код nodejs
const os = require('os');
function operatingTime() {
let sec = os.uptime;
timeMessage();
function timeMessage() {
let hour = Math.floor(sec / 60) / 60;
let hourParse = Math.floor(hour * 10 / 10)
let min = Math.floor((hour - hourParse) * 60) * 10 / 10
console.log(`${hourParse} Часов ${min} Минут `);
}
}
operatingTime();
Буду благодарен за помощь.