2.2.0 • Published 1 year ago

@amm834/luhn v2.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Luhn Algorithm

npm Lint and test npm (scoped) npm bundle size (scoped) GitHub release (latest by date including pre-releases) NPM

@amm834/luhn Libraries.io dependency status for latest release, scoped npm package

Luhn is a validation library the can validate Credit Card numbers which are valid or not. 👀

Installations

pnpm add @amm834/luhn

Usage

You can use validate function to validate the credit card number.

import {validate} from "@amm834/luhn";


const pan = "4895048712071025";

console.log(validate(pan)) //→ true

CLI

@amm834/luhn support to use as CLI tool. You can use it as follows:

luhn validate 4895048712071025 #→ true

API

/**
 *  @param {string} pan - The credit card number to validate.
 * @returns boolean - A boolean value indicating whether the credit card number is valid.
 */
declare const validate: (pan: string) => boolean;
2.2.0

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.0

2 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.2

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.2.1

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.12

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.4-rc6

3 years ago

1.0.4-rc5

3 years ago

1.0.5

3 years ago

1.0.4-rc4

3 years ago

1.0.4-rc3

3 years ago

1.0.4-rc2

3 years ago

1.0.4

3 years ago

1.0.4-rc1

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago