mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-09 07:03:25 +00:00
7 lines
236 B
TypeScript
7 lines
236 B
TypeScript
export const isImage = (type: string) => type.includes('image');
|
|
|
|
export const isBase64Image = (data: string) => data.startsWith('data:image/');
|
|
|
|
export const convertBase64ToBuffer = (base64: string) =>
|
|
Buffer.from(base64, 'base64');
|