checkdigit
0.3.1, released 5 years ago by tiagohm.dev
A set of check digit algorithms used for error detection on identification numbers.
What it does
Provides standard algorithms like Luhn, Verhoeff, Damm, ISBN, ISIN, CPF, IBAN, CNPJ, and EAN-X to validate identification numbers and calculate check digits.
AI-written summary of version 0.3.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to validate credit card numbers, IBANs, or barcodes using check digits.
- You need to calculate check digits for identifiers like ISBN or CPF.
Skip it when
- You need comprehensive form validation frameworks rather than standalone check digit algorithms.
Strengths
- Supports a wide variety of check digit algorithms out of the box.
- Zero dependencies.
- Pure Dart with cross-platform support.
Weaknesses
- Limited to check digit algorithms and validation, not a complete form validation suite.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
not documented
bool isValid = luhn.validate('79927398713');
int checkDigit = luhn.checkDigit('7992739871');Alternatives
Packages that do the same job and could replace checkdigit.
- stats
Calculate common statistical values for a set of numbers.
68Compare - safe_text
Fast Dart profanity and swear word filter with phone number detection for 80+ languages.
78Compare - string_contains
String scanner extensions and widgets to detect and clean bad words, URLs, emails, phones, and tags.
50Compare - tckn_check
Validates Turkish Republic Identification Numbers (TCKN) in Flutter.
46Compare