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

Installation

Getting started with proc is simple—it's just a Deno import away.

Import from JSR

Add proc to your Deno project:

import * as proc from "jsr:@j50n/proc@0.23.3";

Or import just what you need:

import { run, enumerate, read } from "jsr:@j50n/proc@0.23.3";

That's it! No installation step, no package.json, no node_modules.

Permissions

proc needs permissions to run child processes and access files. When you run your script, Deno will prompt you, or you can grant them upfront:

deno run --allow-run --allow-read your-script.ts

Common permissions:

  • --allow-run - Required to run child processes
  • --allow-read - Needed to read files
  • --allow-write - Needed to write files
  • --allow-env - If your processes need environment variables

You can be more specific:

# Only allow running specific commands
deno run --allow-run=ls,grep,wc your-script.ts

# Only allow reading specific directories
deno run --allow-read=/var/log your-script.ts

Version Pinning

For production, pin to a specific version:

import { run } from "jsr:@j50n/proc@1.0.0";

For development, use the latest:

import { run } from "jsr:@j50n/proc";

Next Steps

Ready to write your first proc script? Head to the Quick Start guide.