https://github.com/rexios80/pub_update_checker
Check if your dart script package is up to date in one line
https://github.com/rexios80/pub_update_checker
Last synced: 2 months ago
JSON representation
Check if your dart script package is up to date in one line
- Host: GitHub
- URL: https://github.com/rexios80/pub_update_checker
- Owner: Rexios80
- License: bsd-3-clause
- Created: 2022-03-01T12:35:23.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-11-12T18:46:17.000Z (7 months ago)
- Last Synced: 2025-03-23T20:51:17.723Z (3 months ago)
- Language: Dart
- Homepage: https://pub.dev/packages/pub_update_checker
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Check if your dart script package is up to date in one line.
## Features
- One line check
- Handles getting the current version of the package
- Returns the pub version if an update is available## Getting started
Have a dart script package published on pub.dev. This only works for a currently running globally activated package. Running in any other configuration will always show that the package is up to date.
## Usage
```dart
import 'package:pub_update_checker/pub_update_checker.dart';void main() async {
final newVersion = await PubUpdateChecker.check();
if (newVersion != null) {
print('There is an update available: $newVersion');
} else {
print('No update available');
}
}```