@scandit/web-datacapture-barcode
Version:
Scandit Data Capture SDK for the Web
1 lines • 272 B
JavaScript
var i=new TextEncoder;function m(t){var r;let n=(r=t.barcode.data)!=null?r:t.barcode.rawData,a=t.barcode.symbology,e=64,c=`${n.length>e?n.substring(0,e):n}|${a}`,s=i.encode(c),o="";for(let d of s)o+=String.fromCodePoint(d);return btoa(o).replace(/=+$/,"_")}export{m as a};