# credit-card-validation-qp

> Verify the correctness of the entered card number and the type of card used

Latest version **1.0.0** (published 2020-08-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install credit-card-validation-qp
pnpm add credit-card-validation-qp
yarn add credit-card-validation-qp
bun add credit-card-validation-qp
```

## 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.0 |
| Published | 2020-08-19 |
| First published | 2020-08-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Mohammad Ahmad QB |
| Maintainers | mohammaddc |
| Keywords | credit, card, validation, credit-card, credit-card-validation |

## Links

- npm: https://www.npmjs.com/package/credit-card-validation-qp
- Repository: https://github.com/mohammad-dc/credit-card-validation
- Homepage: https://github.com/mohammad-dc/credit-card-validation#readme
- Issues: https://github.com/mohammad-dc/credit-card-validation/issues
- npm.io page: https://npm.io/package/credit-card-validation-qp

## 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.0 (latest) — 2020-08-19

## README

# Credit Card Validation

Verify the correctness of the entered card number and the type of card used

# Installation

`npm i credit-card-validation --save`

Then...

```
import { cardNumberValidation, getCardType } from 'credit-card-validation';

cardNumberValidation(CARD_NUMBER);  // false or true
getCardType(CARD_NUMBER);   //Mastercard, AMEX, Discover, Diners, Diners-Carte Blanche, JCB, Visa Electron or nothing

```

---
_Source: https://npm.io/package/credit-card-validation-qp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
