Modules@robinpath/process
@robinpath/process
0.1.1PublicChild process management: run commands, spawn long-running processes, get system info
@robinpath/process
Child process management: run commands, spawn long-running processes, get system info
Why use this module?
The process module lets you:
- Run command and wait for result
- Execute command in shell
- Spawn long-running process
- Kill a spawned process
- Check if process is running
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/process
Quick Start
No credentials needed — start using it right away:
process.exec "echo hello"
Available Functions
| Function | Description |
|---|---|
process.run | Run command and wait for result |
process.exec | Execute command in shell |
process.spawn | Spawn long-running process |
process.kill | Kill a spawned process |
process.isAlive | Check if process is running |
process.list | List all managed processes |
process.signal | Send signal to process |
process.pid | Get current process PID |
process.uptime | Get process uptime in seconds |
process.memoryUsage | Get memory usage in MB |
process.cpuUsage | Get CPU usage in ms |
process.cwd | Get working directory |
process.argv | Get process arguments |
process.env | Get environment variables |
process.exit | Request process exit (safe, does not actually exit) |
Examples
Execute command in shell
process.exec "echo hello"
Spawn long-running process
process.spawn "server" "node" ["app.js"]
Kill a spawned process
process.kill "server"
Integration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/process";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
process.exec "echo hello"
`);
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
devops
0
@robinpath/bitbucket
v0.1.1robinpath
Bitbucket module for RobinPath.
0 downloads
...
devops
0
@robinpath/box
v0.1.1robinpath
Box module for RobinPath.
0 downloads
...
devops
0
@robinpath/cache
v0.1.1robinpath
In-memory key-value cache with optional TTL expiration for temporary data storage
0 downloads
...
devops
0
@robinpath/cloudflare
v0.1.1robinpath
Cloudflare module for RobinPath.
0 downloads
...
Install
$ robinpath install @robinpath/process Version0.1.1
LicenseMIT
Unpacked Size5.0 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

