@zatca/qr
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

Welcome to @zatca/qr 👋

Version License: GPL Twitter: shahidcodes

Generate KSA E-Invoice Compatible QR Codes

🏠 Homepage

Install

npm install @zatca/qr

Usage

import { generateQR } from "@zatca/qr";

const testData: EInvoiceFields = {
  sellerName: "Shahid",
  vatNumber: "12345678910111",
  timestamp: "2022-01-02 10:30",
  total: "100.00",
  vatTotal: "15.00",
};

const qrBuffer = await generateQR(testData, { format: "buffer" });

Run tests

npm run test

Author

👤 Shahid Kamal shahidkamal08@gmail.com

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Package Sidebar

Install

npm i @zatca/qr

Weekly Downloads

74

Version

1.4.0

License

GPL

Unpacked Size

63.6 kB

Total Files

10

Last publish

Collaborators

  • shahidkamal