Clone this repo:
  1. 567f600 Update pubspec.yaml by Devon Carew · 1 year, 11 months ago master v0.1.0
  2. 7969e1a Merge pull request #21 from dart-lang/devoncarew_0.1.0 by Devon Carew · 1 year, 11 months ago
  3. ce12d28 0.1.0 by Devon Carew · 1 year, 11 months ago devoncarew_0.1.0
  4. b8c1640 Update appveyor.yml by Devon Carew · 2 years ago
  5. 9bd811f Update appveyor.yml by Devon Carew · 2 years 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.