imagen de búfer
const url = 'https://example.com/test.jpg';
const options = {
string: true,
headers: {
"User-Agent": "my-app"
}
};
const image = await encode(url, options);
await decode(image, { fname: 'example', ext: 'jpg' });
Famous Fox