process 3.0.12

  • Readme
  • Changelog
  • Installing
  • 84

Process #

Build Status - Coverage Status -

A generic process invocation abstraction for Dart.

Like dart:io, package:process supplies a rich, Dart-idiomatic API for spawning OS processes.

Unlike dart:io, package:process:

  • Can be used to implement custom process invocation backends.
  • Comes with a record-replay implementation out-of-the-box, making it super easy to test code that spawns processes in a hermetic way.


  • Updated version constraint on intl.


  • Fix bug: don't add quotes if the file name already has quotes.


  • Added quoted strings to indicate where the command name ends and the arguments begin otherwise, the file name is ambiguous on Windows.


  • Fixed bug in ProcessWrapper


  • Fixed bug in ProcessWrapper


  • Renamed Process to ProcessWrapper


  • Added class Process, a simple wrapper around dart:io's Process class.


  • Fixes for missing_return analysis errors with 2.10.0-dev.1.0.


  • Fix unit tests
  • Update SDK constraint to 3.


  • Update dependency on package:file


  • Remove upper case constants.
  • Update SDK constraint to 2.0.0-dev.54.0.
  • Fix tests for Dart 2.


  • General cleanup


  • Cleanup getExecutablePath() to better respect the platform


  • Bumped package:file dependency

2.0.8 #

  • Fixed method getArguments to qualify the map method with the specific String type

2.0.7 #

  • Remove set exitCode instances

2.0.6 #

  • Fix SDK constraint.
  • rename .analysis_options file to analaysis_options.yaml.
  • Use covariant in place of @checked.
  • Update comment style generics.

2.0.5 #

  • Bumped maximum Dart SDK version to 2.0.0-dev.infinity

2.0.4 #

  • relax dependency requirement for intl

2.0.3 #

  • relax dependency requirement for platform


  • Fix a strong mode function expression return type inference bug with Dart 1.23.0-dev.10.0.


  • Fixed bug in ReplayProcessManager whereby it could try to write to stdout or stderr after the streams were closed.


  • Bumped package:file dependency to 2.0.1


  • Added support to transparently find the right executable under Windows.


  • The executable and arguments parameters have been merged into one command parameter in the run, runSync, and start methods of ProcessManager.
  • Added support for sanitization of command elements in RecordingProcessManager and ReplayProcessManager via the CommandElement class.


  • Initial version

Use this package as a library

1. Depend on it

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

  process: ^3.0.12

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:

import 'package:process/process.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Apr 4, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Health suggestions

Fix lib/src/record_replay/replay_process_manager.dart. (-13.96 points)

Analysis of lib/src/record_replay/replay_process_manager.dart reported 30 hints, including:

line 64 col 25: Use = to separate a named parameter from its default value.

line 69 col 13: Unnecessary new keyword.

line 75 col 13: Unnecessary new keyword.

line 83 col 27: Unnecessary new keyword.

line 84 col 14: Unnecessary new keyword.

Fix lib/src/record_replay/recording_process_manager.dart. (-13.53 points)

Analysis of lib/src/record_replay/recording_process_manager.dart reported 29 hints, including:

line 43 col 54: Avoid const keyword.

line 55 col 30: Unnecessary new keyword.

line 74 col 13: Unnecessary new keyword.

line 86 col 34: Use = to separate a named parameter from its default value.

line 87 col 20: Use = to separate a named parameter from its default value.

Fix lib/src/interface/local_process_manager.dart. (-6.31 points)

Analysis of lib/src/interface/local_process_manager.dart reported 13 hints, including:

line 15 col 8: Unused import: 'package:platform/platform.dart'.

line 38 col 34: Use = to separate a named parameter from its default value.

line 39 col 20: Use = to separate a named parameter from its default value.

line 40 col 26: Use = to separate a named parameter from its default value.

line 62 col 34: Use = to separate a named parameter from its default value.

Fix additional 7 files with analysis or formatting issues. (-15.79 points)

Additional issues in the following files:

  • lib/src/interface/process_manager.dart (11 hints)
  • lib/src/record_replay/manifest.dart (6 hints)
  • lib/src/interface/common.dart (4 hints)
  • lib/src/interface/process_wrapper.dart (4 hints)
  • lib/src/record_replay/run_manifest_entry.dart (3 hints)
  • lib/src/record_replay/can_run_manifest_entry.dart (2 hints)
  • lib/src/record_replay/manifest_entry.dart (2 hints)

Maintenance issues and suggestions

Use constrained dependencies. (-20 points)

The pubspec.yaml contains 1 dependency without version constraints. Specify version ranges for the following dependencies: platform.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and process.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.61 <3.0.0
file ^5.0.0 5.1.0
intl >=0.14.0 <0.17.0 0.16.1
meta ^1.1.2 1.1.8
path ^1.5.1 1.6.4
platform >=1.0.1 2.2.1
Dev dependencies
test ^1.0.0