dependency_visitor 1.0.1 icon indicating copy to clipboard operation
dependency_visitor: ^1.0.1 copied to clipboard

Visits root package, transitive and immediate dependencies in order to search given files.

example/lib/main.dart

import 'package:dependency_visitor/dependency_visitor.dart';

void main() {
  /// Remember to go into example dir in your console.
  /// Run `dart lib/main.dart`
  print('Show which packages has LICENSE file:');
  DependencyVisitor(filePaths: ['LICENSE']).run().listen((dependencyFile) {
    print('Package: ${dependencyFile.packageName}:');
    print(dependencyFile.content);
    print('\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n');
  }).onDone(() {
    print('Done!');
  });
}
1
likes
130
pub points
43%
popularity

Publisher

unverified uploader

Visits root package, transitive and immediate dependencies in order to search given files.

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

effective_dart, equatable, path, pubspec_lock_reader, universal_io, yaml

More

Packages that depend on dependency_visitor