import { got } from 'got'; const client = got.extend({ responseType: 'text', }); export async function retrieveSVGContentFromUrl(url: string) { try { const response = await client.get(url); return response.body; } catch (error) { return null; } }