pub_updater 0.1.0 copy "pub_updater: ^0.1.0" to clipboard
pub_updater: ^0.1.0 copied to clipboard

outdated

A Dart package which enables checking whether a package is up to date.

pub_updater #

Pub build style: very good analysis License: MIT


A Dart package which enables checking whether packages are up to date and supports updating them.

Intended for use in CLIs for prompting users to auto-update.

Usage #

import 'package:pub_updater/pub_updater.dart';

void main() async {
    // Create an instance of PubUpdater
    final pubUpdater = PubUpdater();

    // Check whether or not version 0.1.0 is the latest version of myPackage
    final isUpToDate = pubUpdater.isUpToDate(packageName: 'myPackage', currentVersion: '0.1.0'); 
    
    // Trigger an upgrade to the latest version if myPackage is not up to date
    if (!isUpToDate) {
        pubUpdater.update(packageName: 'myPackage');
    }
}
63
likes
0
pub points
98%
popularity

Publisher

verified publisherverygood.ventures

A Dart package which enables checking whether a package is up to date.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, json_annotation, process

More

Packages that depend on pub_updater