js-img2base64 (npm): Converts an image to Base64. You could pass a maximum size of an image in megabytes, and an array of valid extensions.
Keywords: base64|image|convert|validate|converter|image-to-base64|js