Clone this repo:
  1. 8b470c4 Merge pull request #33 from dart-lang/fix_build by Devon Carew · 3 days ago master
  2. e61e8f4 fix the build by Devon Carew · 3 days ago fix_build
  3. 44145dc Merge pull request #30 from dart-lang/dart2 by Devon Carew · 4 weeks ago 0.2.1
  4. b94a054 dart2 upgrades by Devon Carew · 4 weeks ago
  5. 2217120 Merge pull request #29 from dart-lang/devoncarew-patch-1 by Devon Carew · 8 weeks ago


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