validators 3.0.0 copy "validators: ^3.0.0" to clipboard
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)}');
}
235
likes
140
pub points
98%
popularity

Publisher

unverified uploader

String validation and sanitization for Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on validators