Having tested several node/js exif parsers there appears to be a bug in your implementation.
Certain Images report having an Orientation of 6 when all other readers report a value of 8. I'm not sure why this would be but I have been able to confirm that it is yours that is incorrect as transforming the resulting image based upon the your retrieved Orientation value shows an incorrectly rotated image.
Never mind. Just realized I was overwriting the output value with the Orientation value of the thumbnail if present. Which of course is often rotated differently.
Having tested several node/js exif parsers there appears to be a bug in your implementation.
Certain Images report having an Orientation of 6 when all other readers report a value of 8. I'm not sure why this would be but I have been able to confirm that it is yours that is incorrect as transforming the resulting image based upon the your retrieved Orientation value shows an incorrectly rotated image.