# guess-mime

> Guess image file mime form binary string

Latest version **0.0.2** (published 2017-09-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install guess-mime
pnpm add guess-mime
yarn add guess-mime
bun add guess-mime
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2017-09-28 |
| First published | 2017-09-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ohislh@gmail.com |
| Maintainers | oslh |

## Links

- npm: https://www.npmjs.com/package/guess-mime
- Repository: https://github.com/ioslh/guess-mime
- Homepage: https://github.com/ioslh/guess-mime#readme
- Issues: https://github.com/ioslh/guess-mime/issues
- npm.io page: https://npm.io/package/guess-mime

## Recent versions

- 0.0.2 (latest) — 2017-09-28
- 0.0.1 — 2017-09-28

## README

# Guess MIME from Binary String.


A Library to determine mime type from binary string.

```js
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
```

---
_Source: https://npm.io/package/guess-mime · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
