luhn-cli

1.0.0 • Public • Published

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
false

Generate a number

$ luhn-cli generate 4
5330

Generate a number with a prefix

$ luhn-cli generate 4 12
1214

Test

npm test

Package Sidebar

Install

npm i luhn-cli

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

7.63 kB

Total Files

16

Last publish

Collaborators

  • zbo14