dependency_visitor 1.0.0 copy "dependency_visitor: ^1.0.0" to clipboard
dependency_visitor: ^1.0.0 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
150
pub points
6%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

effective_dart, equatable, path, pubspec_lock_reader, universal_io, yaml

More

Packages that depend on dependency_visitor