You can install the package via npm:
npm i zatca --save
// Import in your app
const TT_Zatca = require('zatca');
/*
* Run Generate QrCode Class
* @param1=company_name
* @param2=tax_id
* @param3=invoice_date
* @param4=grand_total
* @param5=tax_total
*/
const generateQrCode = new TT_Zatca.GenerateQrCode('Tatwerat', '302520021521453', '2011-10-05T14:48:00.000Z', 100.00, 15.00);
let base64 = await generateQrCode.toBase64();
let TLV = await generateQrCode.getTLV();
let qrCode = await generateQrCode.render();