close
Skip to main content

Built and signed on GitHub Actions

Works with
This package works with Deno, Browsers
This package works with Deno
This package works with Browsers
JSR Score100%
License
MIT
Downloads42/wk
Published2 weeks ago (0.0.140)

Typed process drivers for adapting external CLI tools into stable TypeScript APIs.

@sys/driver-process

A collection of thin, typed process drivers that adapt external CLI tools into stable, policy-free TypeScript APIs.

FFmpeg

FFmpeg process driver exposing media inspection and transformation capabilities via ffprobe and ffmpeg.

Purpose

Exposes capabilities, not policy. All I/O happens via @sys/process. No schema, no UI, no assumptions.

Usage

import { Ffmpeg } from 'jsr:@sys/driver-process/ffmpeg';

const duration = await Ffmpeg.Ffprobe.duration('/path/video.webm');
// → t.Msecs | undefined

 

Git

Git source control process driver.

Exposes a thin, typed wrapper over core Git CLI capabilities.

Uses Git’s porcelain output format for machine-stable parsing (designed by Git specifically for tooling, unlike human-oriented output which may change).

import { Git } from 'jsr:@sys/driver-process/git';

// Runtime capability check
const probe = await Git.probe();
if (!probe.ok) {
  // git not available
}

// Get working tree status via `git status --porcelain`
const status = await Git.status();

if (status.ok) {
  for (const e of status.entries) {
    console.log(e.index, e.worktree, e.path);
  }
}
Built and signed on
GitHub Actions

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@sys/driver-process

Import symbol

import * as driver_process from "@sys/driver-process";
or

Import directly with a jsr specifier

import * as driver_process from "jsr:@sys/driver-process";