domain_available 0.1.5 domain_available: ^0.1.5 copied to clipboard
Checks if the domain is available. Use `Instant Domain Search Check` for check domain name.
// 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);
}