Scan your whole stack
Are you using @procedures/node?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.68.7
@procedures/node was last scanned on 24 Nov 2026 at version 0.68.7. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.68.7 LATEST | 24 Nov 2026 | No rules fired |
| 0.68.6 | 24 Nov 2026 | No rules fired |
| 0.68.5 | 24 Nov 2026 | No rules fired |
| 0.68.4 | 24 Nov 2026 | Not shown |
| 0.68.3 | 24 Nov 2026 | Not shown |
Findings for v0.68.7. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.68.7; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Node.js process management procedures for the client ecosystem. Provides procedures for running scripts, spawning long-running processes, and managing process lifecycles.
┌─────────────────────────────────────────────────────────────────────────────┐
│ Client Application │
│ │
│ await client.exec(["node", "run"], { script: "build.js" }) │
│ await client.exec(["node", "spawn"], { script: "server.js" }) │
│ await client.exec(["node", "kill"], { processId: "abc123" }) │
│ await client.exec(["node", "status"], {}) │
│ await client.exec(["node", "logs"], { processId: "abc123", lines: 50 }) │
│ │
└─────────────────────────────────┬───────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────────────────┐
│ Procedure Registry │
│ │
│ ┌───────────────┐ ┌───────────────┐ ┌───────────────┐ ┌─────────────┐ │
│ │ node.run │ │ node.spawn │ │ node.kill │ │ node.status │ │
│ │ │ │ │ │ │ │ │ │
│ │ Run to │ │ Start │ │ Kill by │ │ List all │ │
│ │ completion │ │ detached │ │ process ID │ │ processes │ │
│ └───────┬───────┘ └───────┬───────┘ └───────┬───────┘ └──────┬──────┘ │
│ │ │ │ │ │
└───────────┼──────────────────┼──────────────────┼─────────────────┼────────┘
│ │ │ │
▼ ▼ ▼ ▼
┌─────────────────────────────────────────────────────────────────────────────┐
│ ProcessManager (Singleton) │
│ │
│ ┌─────────────────────────────────────────────────────────────────────┐ │
│ │ Active Processes Map │ │
│ │ │ │
│ │ processId: "abc123" ──► { script, pid, startedAt, status } │ │
│ │ processId: "def456" ──► { script, pid, startedAt, status } │ │
│ │ processId: "ghi789" ──► { script, pid, startedAt, status } │ │
│ │ │ │
│ └─────────────────────────────────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────────────────┐
│ Node.js child_process │
│ │
│ spawn("node", ["script.js"], { detached: true, stdio: "pipe" }) │
│ │
└─────────────────────────────────────────────────────────────────────────────┘
pnpm add @procedures/node
The package has 5 procedures. Its register entry (import "@procedures/node/register") registers them: node.run, node.spawn, node.kill, node.status, node.logs.
Run a Node.js script to completion and return the output.
import { Client } from "@procedures/client";
const result = await client.exec<{
stdout: string;
stderr: string;
exitCode: number;
}>(["node", "run"], {
script: "./scripts/build.js",
args: ["--production"],
cwd: "/path/to/project",
env: { NODE_ENV: "production" },
timeout: 60000 // 1 minute timeout
});
console.log("Exit code:", result.exitCode);
console.log("Output:", result.stdout);
Input Schema:
| Field | Type | Required | Description |
|---|---|---|---|
script |
string |
Yes | Path to script file |
args |
string[] |
No | Command line arguments |
cwd |
string |
No | Working directory |
env |
Record<string, string> |
No | Environment variables |
timeout |
number |
No | Timeout in milliseconds. At the timeout, the script and its child processes are killed, and the call throws. |
maxOutputBytes |
number |
No | The most bytes kept of each output stream (default: 64 MiB) |
The script runs with the Node.js of the host (process.execPath). The signal of the call also kills the script and its child processes.
Output Schema:
| Field | Type | Description |
|---|---|---|
stdout |
string |
Standard output |
stderr |
string |
Standard error |
exitCode |
number |
Process exit code |
truncated |
boolean |
Present when an output stream was longer than maxOutputBytes |
Start a long-running Node.js process. The process is a record of the process registry of client-shell: node.status shows it, node.kill ends it, and it ends with the host.
const result = await client.exec<{
processId: string;
pid: number;
}>(["node", "spawn"], {
script: "./server.js",
args: ["--port", "3000"],
cwd: "/path/to/project",
env: { NODE_ENV: "production" },
ready: { pattern: "Server listening on", timeout: 30000 } // Wait for this output
});
console.log("Process ID:", result.processId);
console.log("PID:", result.pid);
Input Schema:
| Field | Type | Required | Description |
|---|---|---|---|
script |
string |
Yes | Path to script file |
args |
string[] |
No | Command line arguments |
cwd |
string |
No | Working directory |
env |
Record<string, string> |
No | Environment variables |
ready |
{ pattern: string; timeout?: number } |
No | Wait until the output matches pattern (a regular expression). When the process does not get ready, the procedure stops it and throws. |
Output Schema:
| Field | Type | Description |
|---|---|---|
processId |
string |
Internal process identifier |
pid |
number |
System process ID |
Kill a spawned process by its process ID, with the processes that it started, and wait for its end.
const result = await client.exec<{
success: boolean;
}>(["node", "kill"], {
processId: "abc123"
});
if (result.success) {
console.log("Process killed successfully");
}
Input Schema:
| Field | Type | Required | Description |
|---|---|---|---|
processId |
string |
Yes | Process ID from spawn |
Output Schema:
| Field | Type | Description |
|---|---|---|
success |
boolean |
Whether kill succeeded |
Get status of all running processes or a specific one.
// Get all processes
const result = await client.exec<{
processes: ProcessInfo[];
}>(["node", "status"], {});
// Get specific process
const result = await client.exec<{
processes: ProcessInfo[];
}>(["node", "status"], {
processId: "abc123"
});
for (const proc of result.processes) {
console.log(`${proc.processId}: ${proc.status} (PID: ${proc.pid})`);
}
Input Schema:
| Field | Type | Required | Description |
|---|---|---|---|
processId |
string |
No | Specific process ID to query |
output |
boolean |
No | Also give the end of the output of each process (the last 64 KiB) |
Output Schema:
| Field | Type | Description |
|---|---|---|
processes |
ProcessInfo[] |
Array of process information |
ProcessInfo:
| Field | Type | Description |
|---|---|---|
processId |
string |
Internal process identifier |
script |
string |
Script path |
pid |
number |
System process ID |
status |
"running" \| "stopped" |
Process status |
startedAt |
string |
ISO timestamp when started |
The procedure gives the output of one process that node.spawn started. The process registry of client-shell reads the output of each process and keeps its end: the last 64 KiB of stdout and stderr together. Thus the procedure gives that end, also after the process ended. The registry keeps the records of the last 50 ended processes.
const { status, exitCode, output } = await client.exec(["node", "logs"], {
processId: "node-abc123-1",
lines: 50,
stripAnsi: true,
});
The input has these fields:
processId (necessary): the process ID that node.spawn gave.lines: give only the last lines of the output.stripAnsi: remove the ANSI escape codes (colors) from the output.follow: give a stream of lines (see below).The output has the processId, the status (running, exited or error), the exitCode of an ended process and the output.
The procedure knows only the processes of its host. The process writes to two pipes, stdout and stderr. Thus output has their lines in the order of their arrival. A process that node.spawn did not start is an error.
follow: a stream of the linesWith follow: true, the result is a stream. It uses processes.follow of @procedures/shell/command.
for await (const item of client.stream(["node", "logs"], { processId, follow: true, lines: 20 })) {
if (item.type === "exit") break;
console.log(item.type, item.line);
}
| Item | Meaning |
|---|---|
{ type: "output", line } |
A line of the kept output. lines limits these lines. The kept output has stdout and stderr together. |
{ type: "stdout" \| "stderr", line } |
A new line of the process, without its line end. |
{ type: "dropped", bytes } |
The reader was slow, and the stream dropped this many bytes of output. |
{ type: "exit", status, exitCode, signal } |
The end of the process. It is the last item. |
stream: { unbounded: true }, because a process can run without an end.Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.