# base64mime

> Extract the mime type from a base64 string

Latest version **0.0.3** (published 2016-02-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install base64mime
pnpm add base64mime
yarn add base64mime
bun add base64mime
```

## 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.3 |
| Published | 2016-02-02 |
| First published | 2014-12-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Miguel Mota |
| Maintainers | miguelmota |
| Keywords | base64, mime |

## Links

- npm: https://www.npmjs.com/package/base64mime
- Repository: https://github.com/miguelmota/base64-mime
- Issues: https://github.com/miguelmota/base64-mime/issues
- npm.io page: https://npm.io/package/base64mime

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 0.0.3 (latest) — 2016-02-02
- 0.0.1 — 2014-12-05

## README

# base64mime

Extract the MIME type from a base64 string.

# Install

```
npm install base64mime
```

```
bower install base64mime
```

# Usage

```bash
var base64Mime = require('base64mime');

var encoded = 'data:image/png;base64,iVBORw0KGgoAA...5CYII=';

console.log(base64Mime(encoded)); // "image/png"
```

# License

MIT

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