result format data should be the string of type of barcode and not the index
barcode CODE128
text: "123.456789"
rawBytes: Uint8Array(20) [105, 12, 100, 19, 14, 99, 45, 67, 89, 7, 106, 0, 0, 0, 0, 0, 0, 0, 0, 0]
numBits: 0
resultPoints: (2) [i, i]
format: 4
timestamp: 1581342070804
resultMetadata: null
I did a function to get the name like this:
```javascript
import { BarcodeFormat } from '@zxing/library';
const getFormat = value => Object.keys(BarcodeFormat).find(key => BarcodeFormat[key] === value);
It would be nice to have this function in the lib.
Most helpful comment
It would be nice to have this function in the lib.