Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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: .lines not .lines()
  • Always consume output to avoid leaks
  • Errors propagate through pipelines
  • Use enumerate() then .enum() for indices

See Also