luhn 1.0.1 copy "luhn: ^1.0.1" to clipboard
luhn: ^1.0.1 copied to clipboard

Simple Luhn digit algorithm implementation

Luhn check digit algorithm implementation

import 'package:luhn/luhn.dart';

void main() {
  // Five digits code
  final code = '92812';
  // Code with the checksum
  print(Luhn.computeAndAppendCheckDigit(code));
}
2
likes
130
pub points
62%
popularity

Publisher

unverified uploader

Simple Luhn digit algorithm implementation

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on luhn