do_validator

Creator: coderz1093

Last updated:

0 purchases

do_validator Image
do_validator Images

Languages

Categories

Add to Cart

Description:

do validator

Dominican document validation #
This package offers a simple and efficient way to validate Dominican Republic ID numbers. Perfect for developers who need to ensure the validity of identity documents in their applications. It checks the format and integrity of the ID number according to official rules.
Installation #
You can install the package using:
With Dart: #
dart pub add do_validator
copied to clipboard
With Flutter: #
flutter pub get do_validator
copied to clipboard
Example's #
offline validation #
import 'package:do_validator/do_validator.dart';

void main() {
const document = '12345678902';

final bool validation = documentValidator(document);
print(validation);
}
copied to clipboard
API call validation #
import 'package:do_validator/do_validator.dart';

void main() async {
const document = '12345678902';

final result = await electoralRollValidation(document);
print(result);
}
copied to clipboard
API #
documentValidator(document) //Faster
copied to clipboard
Validates a Dominican identity card number.
Parameters #
document (string): The identity card number to validate 11 characters without special characters.
Return #
boolean: true if the ID number is valid, false otherwise.

//validation by API Call
await electoralRollValidation(document)
copied to clipboard
Validates a Dominican identity card number by an API Call in the Electoral roll.
Parameters #
document (string): The identity card number to validate 11 characters without special characters.
Return #
{
statusCode: number,
valid: boolean,
message: string
}
copied to clipboard
Looking for Js framework version? #
Also available in npm, take a look!

Author #
DevKevs

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.