Clone this repo:
  1. 6dffe2f Update pubspec.yaml (#46) by Devon Carew · 6 months ago master
  2. 94895b8 rev to 0.3.1 in preparation for publishing (#45) by Devon Carew · 1 year, 5 months ago 0.3.1
  3. 11c8213 Updated search for pub cache directory on windows to align with the d… (#44) by Brett Sutton · 1 year, 5 months ago
  4. ecdb0c5 Update pubspec.yaml by Devon Carew · 1 year, 7 months ago
  5. 5a2cb57 Merge pull request #43 from google/use_actions by Devon Carew · 1 year, 7 months ago


A library to reflect on the local pub cache.

pub package 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: ${}, 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.