Operating system utilities for Bare. The API closely follows that of the Node.js os module.
npm i bare-os
const os = require('bare-os')
console.log(os.platform()) // 'darwin', 'linux', 'win32', ...
console.log(os.arch()) // 'arm64', 'x64', ...
console.log(os.homedir())
console.log(os.tmpdir())
console.log(os.hostname())
console.log(os.networkInterfaces())See the bare-os reference.
Apache-2.0