domain_available 0.1.0
domain_available: ^0.1.0 copied to clipboard
Checks if the domain is available.
example/domain_available.dart
// ignore_for_file: avoid_print
import 'package:domain_available/domain_available.dart';
void main() async {
// checking
final checked =
await const DomainAvailable('openai.com').firstRegisteredStatus();
print('The ${checked.domain} is ${checked.registeredStatus}.');
// sanitizing
print('https://www.happy.com/path_to/page'.sanitizeDomain);
}