# generate-visa-card-number-test

> A utility for generating test Visa card numbers.

Latest version **1.1.17** (published 2023-11-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install generate-visa-card-number-test
pnpm add generate-visa-card-number-test
yarn add generate-visa-card-number-test
bun add generate-visa-card-number-test
```

## 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.1.17 |
| Published | 2023-11-29 |
| First published | 2023-11-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | thiendong.iuh@gmail.com |
| Maintainers | dongtran |
| Keywords | generate, visa, card, numbers, test, utilities, generate visa number, credit card number |

## Links

- npm: https://www.npmjs.com/package/generate-visa-card-number-test
- Repository: https://github.com/dongtranthien/generate-visa-card-number-test
- Homepage: https://github.com/dongtranthien/generate-visa-card-number-test#readme
- Issues: https://github.com/dongtranthien/generate-visa-card-number-test/issues
- npm.io page: https://npm.io/package/generate-visa-card-number-test

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 1.1.17 (latest) — 2023-11-29
- 1.1.16 — 2023-11-29
- 1.1.14 — 2023-11-22
- 1.1.13 — 2023-11-22
- 1.1.0 — 2023-11-22
- 1.0.24 — 2023-11-22
- 1.0.15 — 2023-11-22
- 1.0.10 — 2023-11-22
- 1.0.5 — 2023-11-22
- 1.0.3 — 2023-11-22
- 1.0.2 — 2023-11-22
- 1.0.1 — 2023-11-22
- 1.0.0 — 2023-11-22

## README

# Generate visa card number

A simple Node.js package to generate random credit card information such as card numbers, expiration dates, and CVV codes for testing purposes.

## Installation

To use this package in your Node.js project, install it via npm:

```bash
npm install generate-visa-card-number-test
```

## Usage
```javascript
const generateCreditCard = require('generate-visa-card-number-test');

// Generate a random credit card information
const creditCard = generateCreditCard();
console.log(creditCard);
// { number: '4152115120832302', cvv: '011', exp: '6-2026' }
```
The generateCreditCard() function returns an object containing a randomly generated credit card number, expiration date, and CVV code.

Optionally, you can provide a Bank Identification Number (BIN) as an argument to generateCreditCard() to create a card number starting with a specific BIN:
```javascript
const generateCreditCard = require('generate-visa-card-number-test');

// Generate a credit card with a specific BIN (Bank Identification Number)
const bin = '400314'; // Replace with your desired BIN
const creditCard = generateCreditCard(bin);
console.log(creditCard);
// { number: '4003140365828386', cvv: '011', exp: '6-2026' }
```


## Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

## License
This project is licensed under the MIT License - see the LICENSE file for details.

---
_Source: https://npm.io/package/generate-visa-card-number-test · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
