text: 'use strict';
  const escpos = require('../');
  
  const {device, printer} = require('./config');
  
  device.open(function() {
    printer
    .model('qsprinter')
    .font('a')
    .align('ct')
    .size(1, 1)
    .encode('utf8')
    .text('QR code example')
    // .qrcodeqs('http://agriex.market')
    .qrcode('ทดสอบ')
    // .barcode('123456789012', 'EAN13') // code length 12
    // .barcode('109876543210') // default type 'EAN13'
    // .barcode('7654321', 'EAN8') // The EAN parity bit is automatically added.
    .close();
  });
  