mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-12 13:38:32 +00:00
* Implement deprecate comment lucide-react * Add export template with comment * Add block comment to Lucide Svelte * Add blockcomment to lucide-angular * Add block comment to lucide-static * revert runtime change build:tags * Fix failed tests * Remove optional property in icon schema
12 lines
276 B
JavaScript
12 lines
276 B
JavaScript
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;
|