Files
lanyard-profile-readme/src/toBase64.ts
callumok2004 f2a5ab9074 🌟 Code Cleanup
2021-06-21 03:56:13 +01:00

13 lines
265 B
TypeScript

import imageToBase64 from "image-to-base64";
export const encodeBase64 = async (url: string): Promise<string> => {
let response = "";
try {
response = await imageToBase64(url);
} catch (e) {
console.log(e)
}
return response;
}