imgurl-to-base64

1.0.4 • Public • Published

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.

License

MIT

Package Sidebar

Install

npm i imgurl-to-base64

Weekly Downloads

9

Version

1.0.4

License

MIT

Unpacked Size

3.01 kB

Total Files

6

Last publish

Collaborators

  • emil_chigu