support Dart 2.0
8 files changed
tree: e6ebb29d061d0da7167da800f126e4ddc9d13463
  1. .gitignore
  2. .project
  3. .travis.yml
  4. AUTHORS
  5. CHANGELOG.md
  6. CONTRIBUTING.md
  7. LICENSE
  8. README.md
  9. analysis_options.yaml
  10. appveyor.yml
  11. example/
  12. lib/
  13. pubspec.yaml
  14. test/
  15. tool/
README.md

pub_cache

A library to reflect on the local pub cache.

pub package Build Status Build status

How do I use it?

pub_cache lets you reflect on the information in your Pub cache. For example, to find all the applications that have been activated:

PubCache cache = new PubCache();

for (Application app in cache.getGlobalApplications()) {
  print('activated app: ${app.name}, version: ${app.version}');
}

Some other interesting use cases:

  • finding all the activated applications whose defining package has a specific meta-data file
  • given a package name, locate the directory on disk for that package, and using that location to read resources contained in the package
  • finding the latest non-dev version of all the packages in the cache

Features and bugs

Please file feature requests and bugs at the issue tracker.