validators2 3.0.0 validators2: ^3.0.0 copied to clipboard
String validation and sanitization for Dart. This implementation is a place holder until the project authors have time to release an nnbd version.
import 'package:validators2/validators.dart';
import 'package:validators2/sanitizers.dart';
main() {
print(toString(1));
print(trim(' hello '));
print(toDouble('1.23'));
print(isDate('1988-01-01'));
print(isNumeric('123'));
print(isAlphanumeric('abc123'));
print(isVIN('WP0ZZZ99ZTS392124'));
print('isUrl: ${isURL('example', requireTld: false)}');
}