Skip to main content

Os

import { getHomeDir, getOsArch, getOsPlatform } from '@rtorcato/js-common/os'

Exports

NameSummary
getHomeDirReturns the user's home directory (Node.js only).
getOsArchReturns the OS architecture (Node.js only).
getOsPlatformReturns the current operating system platform (Node.js only).
getOsReleaseReturns the OS release/version (Node.js only).
getTmpDirReturns the system's temporary directory (Node.js only).