@darthmaim/barcode
Version:
Verify EAN barcodes
20 lines • 849 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Encoding = exports.dataWithWidth = void 0;
function dataWithWidth(data) {
return { data, width: data.length };
}
exports.dataWithWidth = dataWithWidth;
exports.Encoding = {
'0': { L: '0001101', G: '0100111', R: '1110010' },
'1': { L: '0011001', G: '0110011', R: '1100110' },
'2': { L: '0010011', G: '0011011', R: '1101100' },
'3': { L: '0111101', G: '0100001', R: '1000010' },
'4': { L: '0100011', G: '0011101', R: '1011100' },
'5': { L: '0110001', G: '0111001', R: '1001110' },
'6': { L: '0101111', G: '0000101', R: '1010000' },
'7': { L: '0111011', G: '0010001', R: '1000100' },
'8': { L: '0110111', G: '0001001', R: '1001000' },
'9': { L: '0001011', G: '0010111', R: '1110100' },
};
//# sourceMappingURL=helper.js.map