@zatca/qr
v1.4.0
Published
Generate E-Invoice Compatibel QR Code
Downloads
188
Maintainers
Readme
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 [email protected]
- Website: https://shahid.codes
- Twitter: @shahidcodes
- Github: @shahidcodes
- LinkedIn: @shahidkamal
🤝 Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page.