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

Simple Luhn digit algorithm implementation

example/luhn_example.dart

import 'package:luhn/luhn.dart';

void main() {
  // Five digits code
  final code = '92812';
  // Code with the checksum
  print(Luhn.computeAndAppendCheckDigit(code));
}
2
likes
150
points
670
downloads

Publisher

unverified uploader

Weekly Downloads

Simple Luhn digit algorithm implementation

Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on luhn