Skip to content

tiennv166/toBase64String

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

to-base-64-string

  • Download data from a URL, then convert and respond with a base64 string.

Installation

$ npm install to-base-64-string

Examples

const url = 'https://example.com/image.jpg';
getBase64From(url)
    .then(base64String => {
        console.log('Base64 string:', base64String);
    })
    .catch(error => {
        console.error('Error:', error);
    });
})

About

Download data from a URL, then convert and respond with a base64 string.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published