img-base64

1.0.0 • Public • Published

img-base64

image to base64 & base64 to image

How to use

const {imgToBase64, base64ToImg} = require('img-base64');
 
async function imgTrans() {
  const base64Str = await imgToBase64(filePath);
  
  await base64ToImg(base64Str, fileDir, fileName);
}
 
imgTrans();

Readme

Keywords

none

Package Sidebar

Install

npm i img-base64

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • builden