executable 1.2.3 copy "executable: ^1.2.3" to clipboard
executable: ^1.2.3 copied to clipboard

The executable package simplifies managing executables in Dart. Finds and checks presence, with cached results for improved performance.

The executable package is a simple Dart library for dealing with executables. It provides a class called Executable which makes it easy to find the path to an executable and check if it exists on the system.

Getting started #

dart pub add executable

Usage #

import 'package:executable/executable.dart';

void main() {
  final cp = Executable('cp');
  if (cp.existsSync()) {
    final path = cp.findSync();
    print('The path to ${cp.cmd} executable is $path.');
  } else {
    print('The executable ${cp.cmd} was not found on your system.');
  }
}

LICENSE #

BSD 3-Clause License

CONTRIBUTE #

We welcome contributions to the executable package. If you have an idea for a new feature or have found a bug, just do a pull request (PR).

5
likes
40
pub points
9%
popularity

Publisher

verified publisherhelio.me

The executable package simplifies managing executables in Dart. Finds and checks presence, with cached results for improved performance.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

process_run

More

Packages that depend on executable