luhn-cli
v1.0.0
Published
A CLI to verify and generate numbers compliant with the Luhn algorithm
Downloads
26
Readme
luhn-cli
A simple CLI to verify and generate numbers compliant with the Luhn algorithm.
Install
npm i -g luhn-cli
Usage
Verify a number
$ luhn-cli verify 0000
true$ luhn-cli verify 1234
falseGenerate a number
$ luhn-cli generate 4
5330Generate a number with a prefix
$ luhn-cli generate 4 12
1214Test
npm test
