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

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

example/executable_example.dart

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.');
  }
}
5
likes
160
points
33
downloads

Publisher

verified publisherhelio.me

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

process_run

More

Packages that depend on executable