Skip to content

zbo14/luhn-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A CLI that verifies and generates numbers compliant with the Luhn algorithm

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published