You can easy pass a string base64 to a image.
Use the package manager npm to install.
npm install ts-base64toimage
import { passBase64 } from 'ts-base64toimage'
passBase64.toImage('your_base64',
{
path: string
fileName?: string
fileExtension?: 'png' | 'jpg' | 'jpeg'
}
)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.