validators2 5.0.0 copy "validators2: ^5.0.0" to clipboard
validators2: ^5.0.0 copied to clipboard

String validation and sanitization for Dart.

example/main.dart

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

void 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)}');
}
8
likes
150
points
1.27M
downloads

Publisher

verified publisheronepub.dev

Weekly Downloads

String validation and sanitization for Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on validators2