process_plus 1.0.0

  • Installing
  • Versions
  • new46


Pub build status

Helpers for package:process. Including ForwardingProcessManager, PooledProcessManager, MockProcessManager, and CompletedProcess.


A simple ProcessManager that delegates to another one. Typically used as a base class to extend functionality.

var manager = new ForwwardingProcessManager(const LocalProcessManager());


A ProcessManager that uses a Pool to limit to the max amount of concurrently-running processes.

var manager = new PooledProcessManager(const LocalProcessManager(), Platform.numberOfProcessors);


A ProcessManager that can enqueue results in advance, rather than actually spawning OS processes.

var manager = new MockProcessManager();
manager.enqueue(new ProcessResult(0, 1337, stdout, stderr));

var p = await['foo', '--bar=baz']);
await p.exitCode; // 1337


A Process implementation that simply outputs the result of a CompletedProcess.

var p = new CompletedProcess(new ProcessResult(0, 1337, stdout, stderr));
await p.exitCode; // 1337

1. Depend on it

Add this to your package's pubspec.yaml file:

  process_plus: "^1.0.0"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:process_plus/process_plus.dart';
Version Uploaded Documentation Archive
1.0.0 Mar 2, 2018 Go to the documentation of process_plus 1.0.0 Download process_plus 1.0.0 archive


We analyzed this package on Mar 5, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.31.0
  • pana: 0.10.3


Describes how popular the package is relative to other packages. [more]
0 / 100
Code health derived from static analysis. [more]
99 / 100
Reflects how tidy and up-to-date the package is. [more]
80 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, other

Primary library: package:process_plus/process_plus.dart with components: io.


  • Maintain

    Changelog entries help clients to follow the progress in your code.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use process_plus.dart.

  • Fix issues reported by dartanalyzer or dartfmt.

    dartanalyzer or dartfmt reported 2 hints.

    Run dartfmt to format lib/process_plus.dart.

    Run dartfmt to format lib/src/mock_process_manager.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0
pool ^1.0.0 1.3.4
process ^2.0.0 2.0.7
Transitive dependencies
async 2.0.6
collection 1.14.5
file 2.3.7
intl 0.15.2
meta 1.1.2
path 1.5.1
platform 2.1.2
stack_trace 1.9.2
Dev dependencies
test ^0.12.0