1.4.0 ā€¢ Published 2 years ago

@zatca/qr v1.4.0

Weekly downloads
-
License
GPL
Repository
-
Last release
2 years ago

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.