where 6.6.0 copy "where: ^6.6.0" to clipboard
where: ^6.6.0 copied to clipboard

discontinued
outdated

Find the instances of an executable in the system path. Like the `which` Linux command.

example/main.dart

// ignore_for_file: avoid_print
import 'package:where/where.dart';

/// Finds the instances of an executable.
Future<void> main() async {
  try {
    // `path` is the absolute path to the executable.
    final path = await where('foobar');
    print('The command "foobar" is located at: $path');
  }

  on FinderException catch (err) {
    print('The command "${err.command}" is not found');
  }
}
3
likes
15
pub points
4%
popularity

Publisher

verified publisherbelin.io

Find the instances of an executable in the system path. Like the `which` Linux command.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

build_cli_annotations, path

More

Packages that depend on where