Skip to content

Releases: theaungmyatmoe/panify

Panify - v2.0.0

22 Jan 10:56

Choose a tag to compare

v2.0.0

Breaking Changes

  • Changes the API to functional approach
  • Changes the API to use createGenrator instead of Generator class
  • Changes the CLI interface instead of arguments to more beautiful prompts based CLI
  • Fully typed with TypeScript
  • Tests are written with Vitest
  • Uses ESM instead of CommonJS
import {createGenerator} from "panify";

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

console.log(cards)

CLI User Interface

➜  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 }
]