imgurl-to-base64
v1.0.4
Published
A simple wrapper that converts images urls to base64 image strings
Downloads
134
Maintainers
Readme
imgurl-to-base64
A simple wrapper that converts images urls to base64 image strings
Installation
Use the package manager npm.
npm install imgurl-to-base64
Usage
import imgUrlToBase64 from 'imgurl-to-base64'
const url = 'https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png'
const test = async () => {
console.log(await imgUrlToBase64(url))
}
Contributing
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.