4. Commone

01

We can access operating system (OS) modules with a require on the global object,

const os = require('os')
console.log(os)

and then access methods from the os variable, including

02

console.log(os.type())
console.log(os.version())

here you can access your home directory

console.log(os.homedir())