efi-easy-pix
Version:
A simple Node.js module for integrating with Efipay's PIX API
23 lines (19 loc) • 408 B
JavaScript
const { QRCodeOptions } = require('./types');
class QRImage {
constructor(base64) {
this.base64 = base64;
}
toBuffer() {
return Buffer.from(this.base64, 'base64');
}
}
class QRCode {
constructor({ content, base64 }) {
this.content = content;
this.image = new QRImage(base64);
}
}
module.exports = {
QRCode,
QRImage
};