Modules@robinpath/process

@robinpath/process

0.1.1Public

Child 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

Category Functions Auth License

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

FunctionDescription
process.runRun command and wait for result
process.execExecute command in shell
process.spawnSpawn long-running process
process.killKill a spawned process
process.isAliveCheck if process is running
process.listList all managed processes
process.signalSend signal to process
process.pidGet current process PID
process.uptimeGet process uptime in seconds
process.memoryUsageGet memory usage in MB
process.cpuUsageGet CPU usage in ms
process.cwdGet working directory
process.argvGet process arguments
process.envGet environment variables
process.exitRequest 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

License

MIT

Versions (1)

VersionTagPublished
0.1.1latestyesterday
Install
$ robinpath install @robinpath/process
Version0.1.1
LicenseMIT
Unpacked Size5.0 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

Category

devops