velt/os
API referenceFacts about the machine, a subset of Node's os module. For a walkthrough, read the guide.
Exports
arch"arm64" or "x64" (Node's
process.arch names).availableParallelismLogical CPUs this process may use (at least 1).eolThe line terminator of the platform: "\r\n" on Windows, "\n" elsewhere.hostnameThe machine's host name ("" if unknown).platform"darwin", "linux" or "win32" (Node's process.platform names).tmpdirThe directory for temporary files, without a trailing separator.lastOsErrorNo doc comment yetRe-exported from velt/os/machine
function arch(): string"arm64" or "x64" (Node's process.arch names).
Re-exported from velt/os/machine
function availableParallelism(): i64Logical CPUs this process may use (at least 1).
Re-exported from velt/os/machine
function eol(): stringThe line terminator of the platform: "\r\n" on Windows, "\n" elsewhere.
Re-exported from velt/os/machine
function hostname(): stringThe machine's host name ("" if unknown).
Re-exported from velt/os/machine
function platform(): string"darwin", "linux" or "win32" (Node's process.platform names).
Re-exported from velt/os/machine
function tmpdir(): stringThe directory for temporary files, without a trailing separator.
export { lastOsError } from "velt/os/rt"No doc comment yet