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)}');
}
7
likes
150
pub points
82%
popularity

Publisher

verified publisheronepub.dev

String validation and sanitization for Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on validators2