panify
TypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

Panify

npm npm npm

Credit card number validator and generator.

Installations

pnpm install panify #pnpm

Usage

First, provide the intial 6 digits of the PAN number to the createGenerator And then you can generate a random PAN number by calling the generate function.

import {createGenerator} from "panify";

const generator = createGenerator(489504)
const cards = await generator.generate()

console.log(cards)

CLI User Interface

Prompt based CLI interface for more beautiful experience.

➜  panify git:(main) ✗ panify
✔ Type first (6) number of credit card … 111111
✔ Total amount of cards … 10
[
  { cardNumber: 111111703, month: 9, year: 2027 },
  { cardNumber: 111111604, month: 6, year: 2025 },
  { cardNumber: 111111802, month: 12, year: 2024 },
  { cardNumber: 111111289, month: 5, year: 2027 },
  { cardNumber: 11111168, month: 4, year: 2023 },
  { cardNumber: 111111944, month: 11, year: 2023 },
  { cardNumber: 111111133, month: 3, year: 2027 },
  { cardNumber: 111111897, month: 1, year: 2026 },
  { cardNumber: 111111185, month: 6, year: 2025 },
  { cardNumber: 111111307, month: 3, year: 2025 }
]

Package Sidebar

Install

npm i panify

Weekly Downloads

3

Version

2.0.4

License

MIT

Unpacked Size

12.2 kB

Total Files

18

Last publish

Collaborators

  • amm834