validators 3.0.0
validators: ^3.0.0 copied to clipboard

String validation and sanitization for Dart.

example/main.dart

import 'package:validators/sanitizers.dart';
import 'package:validators/validators.dart';

main() {
  print(toString(1));
  print(trim('  hello '));
  print(toDouble('1.23'));

  print(isDate('1988-01-01'));
  print(isNumeric('123'));
  print(isAlphanumeric('abc123'));
  print('isUrl: ${isURL('example', requireTld: false)}');
}