guess-mime

0.0.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    1
  • 0.0.1
    0

Package Sidebar

Install

npm i guess-mime

Weekly Downloads

1

Version

0.0.2

License

ISC

Last publish

Collaborators

  • oslh