https://github.com/insign/dart_executable
Simple dart class to deal with executables
https://github.com/insign/dart_executable
dart
Last synced: 10 months ago
JSON representation
Simple dart class to deal with executables
- Host: GitHub
- URL: https://github.com/insign/dart_executable
- Owner: insign
- License: bsd-3-clause
- Created: 2023-01-29T19:41:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-01T17:30:02.000Z (about 2 years ago)
- Last Synced: 2024-11-16T13:09:22.209Z (over 1 year ago)
- Topics: dart
- Language: Dart
- Homepage: https://pub.dev/packages/executable
- Size: 23.4 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
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
dart pub add executable
```
## Usage
```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.');
}
}
```
## LICENSE
[BSD 3-Clause License](./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).