Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@requrv/image-to-base64

ReQurv16MIT0.0.6TypeScript support: included

Convert any image file to Base64 data

node, nodejs, browser, module convert base64 nodejs, image2base64, image to base64, convert image to base64, convert-image-base64, base64 convert image, loader, img, img to base64, img2base64, base64, image, convert

readme

Convert image file to Base64

The project simplifies the task of converting images loaded from a browser to the Base64 format.

Authors

Install with yarn:

  yarn add @requrv/image-to-base64

Install with npm:

  npm install @requrv/image-to-base64

Usage/Examples

import { convertImage } from '@requrv/image-to-base64'

async function convert(file: File) {
    return await convertImage(file)
}

License

MIT