proc 0.2.0+2 copy "proc: ^0.2.0+2" to clipboard
proc: ^0.2.0+2 copied to clipboard

Run and manage OS processes with an extensible and testable API.

proc #

Run and manage OS processes with an extensible and testable API.

✅ Health 🚀 Release 📝 Docs ♻️ Maintenance
Build status for package/proc Pub version for package/proc Dart documentation for package/proc GitHub Issues for package/proc

Features #

Most use cases of running processes are typically handled by importing and using dart:io and using the Process class. However, the proc library provides a more flexible and extensible API for running and managing processes.

  • Setting default parameters for launching processes.
  • Cross-platform APIs that do not require dart:io.
  • Create and manage individual processes using ProcessController.
  • Emulate a file system like environment using ExecutableContainer.

Usage #

import 'package:proc/proc.dart';

void main() async {
  final tool = p.join('tool', 'echo.dart');
  final host = ProcessHost();
  final proc = await host.start(tool, ['stdout']);
}

Contributing #

We welcome contributions to this package!

Please file an issue before contributing larger changes.

This package uses repository specific tooling to enforce formatting, static analysis, and testing. Please run the following commands locally before submitting a pull request:

  • ./dev.sh --packages packages/proc check
  • ./dev.sh --packages packages/proc test
6
likes
160
points
7
downloads

Publisher

verified publisherlurey.dev

Weekly Downloads

Run and manage OS processes with an extensible and testable API.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

meta, path

More

Packages that depend on proc