legal 0.2.3
legal: ^0.2.3 copied to clipboard
Offline third-party license inventory, SPDX policy checks, and deterministic license notices for Dart applications.
import 'package:legal/legal.dart';
Future<void> main() async {
final project = await LegalProject.load('.');
final report = await project.scan();
final result = report.check(project.config.policy);
print('Policy satisfied: ${result.isSuccess}');
print(report.renderThirdPartyLicenses(policy: project.config.policy));
}