1.1.17 • Published 6 months ago

generate-visa-card-number-test v1.1.17

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

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:

npm install generate-visa-card-number-test

Usage

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:

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.

1.1.17

6 months ago

1.1.16

6 months ago

1.1.14

6 months ago

1.1.13

6 months ago

1.1.0

6 months ago

1.0.24

6 months ago

1.0.15

6 months ago

1.0.10

6 months ago

1.0.5

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago