0.0.2 • Published 7 years ago
guess-mime v0.0.2
Guess MIME from Binary String.
A Library to determine mime type from binary string.
import guessMIME from 'guess-mime';
const base64 = '...'; // just base64 code of image, without mime segment
const binaryString = window.atob(base64);
const mime = guessMIME(binaryString); // return null if guess failed