Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

276 B
Raw Blame
const base64SVG = (svgContents) =>
  Buffer.from(
    svgContents
      .replace('\n', '')
      .replace(
        'stroke="currentColor"',
        'stroke="#000" style="background-color: #fff; border-radius: 2px"',
      ),
  ).toString('base64');

export default base64SVG;