check-header-hex
This repository checks for valid file headers; the function is a generator, so you need to yield.
Usage
npm install check-header-hex 'use strict'; let fs = ;let co = ;let check = ; const VALID_HEX = '25504446,FFD8FFE1, FFD8FFE0, FFD8FFFE, 89504E47'; let { ; }; ;
The function returns true or false.