barcode-get-binary-sections
v1.0.0
Published
Returns the sections of a binary barcode
Downloads
2
Readme
barcode-get-binary-sections
Install
$ npm install --save barcode-get-binary-sections
Usage
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
}
API
barCodeGetBinarySections(bars)
Returns the parts of the barcode as an object.
bars
Type: string
A binary representation of the barcode in binary.
License
MIT