Skip to content

EmilChigu/imgUrl-to-base64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple wrapper that converts images urls to base64 image strings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published