# creditcards-numb-valid

> Credit card numbers validator. Luhn algorithm

Latest version **1.0.1** (published 2022-08-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install creditcards-numb-valid
pnpm add creditcards-numb-valid
yarn add creditcards-numb-valid
bun add creditcards-numb-valid
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-08-30 |
| First published | 2022-08-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ernesto Cisnero |
| Maintainers | ernesto_cisnero |
| Keywords | credit card, numbers, validator |

## Links

- npm: https://www.npmjs.com/package/creditcards-numb-valid
- npm.io page: https://npm.io/package/creditcards-numb-valid

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-08-30
- 1.0.0 — 2022-08-30

## README

```
Author:Ernesto Cisnero.
```
## creditcards-numb-valid
You can verify if a credit card number is valid or not. Based on Luhn algorithm to check 16 digits credit card numbers.

### To install the package:


```
npm install creditcards-numb-valid
```

use it:

```
const validate = require('creditcards-numb-valid');

const validation = validate( /*Number to validate*/ );
```

return:

```
if valid:

{ 
    errorCode: false, 
    info: 'The credit card number is valid!'
}

if not valid:

{ 
    errorCode: true, 
    info: 'The credit card number is not valid!'
}
```

---
_Source: https://npm.io/package/creditcards-numb-valid · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
