Skip to content

pauvel/easyBlob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EasyBlob

Convert a blob to base64 string in seconds.

Authors

Usage/Examples

import easyBlob from './easyblob/index.js';

const fileInput = document.querySelector('#fileInput');
const btnTob64 = document.querySelector('#btnTob64');



btnTob64.addEventListener('click', async (e) => {
    const myBlob = fileInput.files[0];
    const myB64 = await easyBlob.blobToBase64(myBlob);
    console.log(myB64);
});

Installation

Install easyblob with npm

  npm i easyblob

About

Convert a blob to base64 string in seconds.

Resources

Stars

Watchers

Forks