@requrv/image-to-base64
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

Convert image file to Base64

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

Authors

Installation

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

Package Sidebar

Install

npm i @requrv/image-to-base64

Weekly Downloads

2

Version

0.0.6

License

MIT

Unpacked Size

14.4 kB

Total Files

8

Last publish

Collaborators

  • clarequrv