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

The executable package provides a simple Dart class for dealing with executables. It helps find and check the existence of executables on the system and caches the results for improved performance. It [...]

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.');
  }
}
4
likes
0
pub points
18%
popularity

Publisher

verified publisherhelio.me

The executable package provides a simple Dart class for dealing with executables. It helps find and check the existence of executables on the system and caches the results for improved performance. It's ideal for developers building terminal applications in Dart who want to ensure that required executables are present and usable.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

process_run

More

Packages that depend on executable