link_checker 1.1.1 link_checker: ^1.1.1 copied to clipboard
Finds links practically anywhere and optionally checks if they're dead
import 'package:link_checker/link_checker.dart';
/*
This will print https://github.com/neelkamath/nonexistent-repository and
http://lakdjflakfasldfkjadlkfj.io since they're bad links, but not
https://google.com since it's a good link.
*/
void main() async {
await for (final link in getBadLinksInFile('example/main.dart')) {
print(link);
}
}