Clone this repo:
  1. 20069a2 Merge pull request #26 from dart-lang/0.1.1 by Devon Carew · 8 days ago master v0.1.1
  2. 0c3b7ab 0.1.1 by Devon Carew · 8 days ago 0.1.1
  3. 51ae2de Merge pull request #24 from joeconwaystk/master by Devon Carew · 10 days ago
  4. cd074a1 Update pubspec.yaml by Devon Carew · 10 days ago
  5. 974bf23 Fix global_package enumeration by Joe Conway · 10 days ago

pub_cache

A library to reflect on the local pub cache.

pub package Build Status Build status Coverage 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.