mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-11 13:28:19 +00:00
* Adjust typescript types * adjust types * fix types in all helper files * Fix types * Migrate js files to ts files * Refactor to TS files * Rename extentions * Adjust imports * Fix builds * Update lockfile * Fix last typescript migration * Fix entry path @lucide/outline-svg * Fix types * add checkout step * format files * Format files
12 lines
284 B
TypeScript
12 lines
284 B
TypeScript
const base64SVG = (svgContents: string) =>
|
|
Buffer.from(
|
|
svgContents
|
|
.replace('\n', '')
|
|
.replace(
|
|
'stroke="currentColor"',
|
|
'stroke="#000" style="background-color: #fff; border-radius: 2px"',
|
|
),
|
|
).toString('base64');
|
|
|
|
export default base64SVG;
|