Modules@robinpath/os
@robinpath/os
0.1.1PublicSystem information: hostname, platform, architecture, CPU, memory, network, and more
@robinpath/os
System information: hostname, platform, architecture, CPU, memory, network, and more
Why use this module?
The os module lets you:
- Get the system hostname
- Get the OS platform (linux, darwin, win32)
- Get the CPU architecture
- Get CPU information
- Get the number of CPU cores
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/os
Quick Start
No credentials needed — start using it right away:
os.platform
Available Functions
| Function | Description |
|---|---|
os.hostname | Get the system hostname |
os.platform | Get the OS platform (linux, darwin, win32) |
os.arch | Get the CPU architecture |
os.cpus | Get CPU information |
os.cpuCount | Get the number of CPU cores |
os.totalMemory | Get total system memory in bytes |
os.freeMemory | Get free system memory in bytes |
os.uptime | Get system uptime in seconds |
os.homeDir | Get the user home directory |
os.tempDir | Get the OS temp directory |
os.userInfo | Get current user information |
os.networkInterfaces | Get network interface information |
os.type | Get the OS type (Linux, Darwin, Windows_NT) |
os.release | Get the OS release version |
os.eol | Get the OS end-of-line marker |
Examples
Get the OS platform (linux, darwin, win32)
os.platform
Get the CPU architecture
os.arch
Get CPU information
os.cpus
Integration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/os";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
os.platform
`);
Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/json— JSON module for complementary functionality
License
MIT
Versions (1)
| Version | Tag | Published |
|---|---|---|
| 0.1.1 | latest | yesterday |
Related Modules
utilities
1
@dev-tester/hello-world
v2.0.0dev-tester
Updated description
0 downloads
...
utilities
0
@robinpath/apollo
v0.1.1robinpath
Apollo module for RobinPath.
0 downloads
...
utilities
0
@robinpath/archive
v0.1.1robinpath
Create and extract .zip and .tar.gz file archives
0 downloads
...
utilities
0
@robinpath/assert
v0.1.1robinpath
Testing assertions: equal, deepEqual, truthy, falsy, type checks, includes, matches, throws, and more
0 downloads
...
Install
$ robinpath install @robinpath/os Version0.1.1
LicenseMIT
Unpacked Size3.9 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

