pub_cache 0.1.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 28

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.

Changelog

0.1.0

  • release as 0.1.0

0.0.1+2

  • ensure that any missing version constraint is returned as Version.none

0.0.1+1

  • fix an issue with parsing pubspec.yaml files without a version property defined

0.0.1

  • initial version

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  pub_cache: ^0.1.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:pub_cache/pub_cache.dart';
  
Version Uploaded Documentation Archive
0.2.2 Sep 27, 2018 Go to the documentation of pub_cache 0.2.2 Download pub_cache 0.2.2 archive
0.2.1 Jul 22, 2018 Go to the documentation of pub_cache 0.2.1 Download pub_cache 0.2.1 archive
0.2.0 Apr 19, 2018 Go to the documentation of pub_cache 0.2.0 Download pub_cache 0.2.0 archive
0.1.1 Oct 13, 2017 Go to the documentation of pub_cache 0.1.1 Download pub_cache 0.1.1 archive
0.1.0 Jul 10, 2015 Go to the documentation of pub_cache 0.1.0 Download pub_cache 0.1.0 archive
0.0.1+2 Apr 13, 2015 Go to the documentation of pub_cache 0.0.1+2 Download pub_cache 0.0.1+2 archive
0.0.1+1 Apr 13, 2015 Go to the documentation of pub_cache 0.0.1+1 Download pub_cache 0.0.1+1 archive
0.0.1 Apr 12, 2015 Go to the documentation of pub_cache 0.0.1 Download pub_cache 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
55
Health:
Code health derived from static analysis. [more]
--
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
--
Overall:
Weighted score of the above. [more]
28
Learn more about scoring.

This package version is not analyzed, because it is more than two years old. Check the latest stable version for its analysis.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Maintenance issues and suggestions

Running dartdoc failed. (-10 points)

Make sure dartdoc runs without any issues.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.8.0 <2.0.0