$ npm install --save barcode-get-binary-sections
const barCodeGetBinarySections = require('barcode-get-binary-sections');
barCodeGetBinarySections('10100011010110001001100100011010001101000110101010111001011001101101100100111011001101000100101')
//=> {
leftHandGuard: '101',
rightHandGuard: '101',
centerGuard: '01010',
leftNumbers: ['0001101', '0110001', '0011001', '0001101', '0001101', '0001101'],
rightNumbers: ['1110010', '1100110', '1101100', '1001110', '1100110', '1000100'],
isBackwards: false
}
Returns the parts of the barcode as an object.
Type: string
A binary representation of the barcode in binary.
MIT