pubguard 1.0.2 copy "pubguard: ^1.0.2" to clipboard
pubguard: ^1.0.2 copied to clipboard

Plugin Health Monitor for Flutter - Analyze dependencies and get health scores

example/example.dart

import 'package:pubguard/pubguard.dart';

void main() async {
  final scoringEngine = ScoringEngine();
  final pubDevClient = PubDevClient();
  final formatter = OutputFormatter();

  final packageNames = ['http', 'yaml', 'path', 'async'];

  print('Checking package health scores...\n');

  final scores = <HealthScore>[];

  for (final name in packageNames) {
    final pkgInfo = await pubDevClient.fetchPackageInfo(name);
    final score = scoringEngine.calculate(pkgInfo);
    scores.add(score);
  }

  print(formatter.format(scores, format: 'table'));
}
2
likes
160
points
162
downloads

Documentation

API reference

Publisher

verified publisherpendura.in

Weekly Downloads

Plugin Health Monitor for Flutter - Analyze dependencies and get health scores

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, http, path, yaml

More

Packages that depend on pubguard