Home

Awesome

validator.dart

Build Status

String validation and sanitization for Dart.

Port of chriso's library.

Usage

Documentation

Complete documentation of the package is available at http://www.dartdocs.org/documentation/validator/0.0.7/index.html#validator/validator

For a list of methods, refer to the sections below.

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  validator: ">=0.0.4 <0.1.0"

2. Install it

You can install packages from the command line:

$ pub get

Alternatively, your editor might support pub. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:validator/validator.dart';

Validators

Sanitizers

Tests

To test the package, run:

$ ./tool/run_tests.sh