Migration Guide
Migrating from other tools to proc.
From Deno.Command
Before:
const command = new Deno.Command("ls", { args: ["-la"] });
const output = await command.output();
const text = new TextDecoder().decode(output.stdout);
After:
import { run } from "jsr:@j50n/proc@0.23.3";
const lines = await run("ls", "-la").lines.collect();
From Shell Scripts
See Shell Script Replacement for detailed examples.
Key Differences
- Properties vs methods:
.linesnot.lines() - Always consume output to avoid leaks
- Errors propagate through pipelines
- Use
enumerate()then.enum()for indices
See Also
- Getting Started - Installation
- Key Concepts - Important concepts
- FAQ - Common questions