import os from "os";
const homeDirectory = os.homedir();
const osPlatform = os.platform();
const cpu = os.cpus();
const coreCount = cpu.length;
const cpuModel = cpu[0].model;
const cpuSpeed = cpu[0].speed;
let info = `
* OS: ${osPlatform}
* Home: ${homeDirectory}
* CPU: ${cpuModel}
* Speed: ${cpuSpeed} MHz
* Cores: ${coreCount}
`
await say(
`
Your home directory is: ${homeDirectory}.
The OS platform is: ${osPlatform}.
The processor speed is ${cpuSpeed} megahertz.
Your ${cpuModel} has ${coreCount} cores.
`
);
await div(md(info), `p-4`)