Convert any image file to Base64 data
npm install @requrv/image-to-base64The project simplifies the task of converting images loaded from a browser to the Base64 format.
- @ReQurv
Install with yarn:
``bash`
yarn add @requrv/image-to-base64
Install with npm:
`bash`
npm install @requrv/image-to-base64Usage/Examples
`typescript
import { convertImage } from '@requrv/image-to-base64'
async function convert(file: File) {
return await convertImage(file)
}
``