# easyblob

> Convert a blob to a base64 string.

Latest version **1.0.3** (published 2024-09-17) · ISC license · 0 weekly downloads

## Install

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

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

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

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2024-09-17 |
| First published | 2021-07-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | pauvel |
| Maintainers | pauvel |
| Keywords | blob, base64, convert |

## Links

- npm: https://www.npmjs.com/package/easyblob
- Repository: https://github.com/pauvel/easyBlob
- Homepage: https://github.com/pauvel/easyBlob#readme
- Issues: https://github.com/pauvel/easyBlob/issues
- npm.io page: https://npm.io/package/easyblob

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K 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

## Recent versions

- 1.0.3 (latest) — 2024-09-17
- 1.0.2 — 2024-09-17
- 1.0.1 — 2024-09-17
- 1.0.0 — 2021-07-25

## README

# EasyBlob

Convert a blob to base64 string in seconds.

## Authors

- [@Pauvel](https://www.github.com/Pauvel)

  
## Usage/Examples

```javascript
import { blobToBase64 } from './node_modules/easyblob/index.js'

document.getElementById('fileInput').addEventListener('change', async (event) => {
    const file = event.target.files[0];
    
    if (file) {
        try {
            const base64String = await blobToBase64(file);
            document.getElementById('result').innerText = `Base64 String: ${base64String}`;
        } catch (err) {
            console.error('Error converting to base64:', err);
        }
    }
});
```

```javascript
// ESM Node.js
import { blobToBase64 } from 'easyblob';
```

```javascript
// CommonJS
const { blobToBase64 } = require('easyblob');
```
## Installation

Install easyblob with npm

```bash
  npm i easyblob
```

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