mirror of
https://github.com/lucide-icons/lucide.git
synced 2025-12-16 14:27:42 +01:00
* Revert sync to async functions * Replace more sync fs functions * Format files * Fix build svelte package
14 lines
375 B
JavaScript
14 lines
375 B
JavaScript
/* eslint-disable import/prefer-default-export */
|
|
import fs from 'fs/promises';
|
|
import path from 'path';
|
|
|
|
/**
|
|
* writes content to a file
|
|
*
|
|
* @param {string} fileName
|
|
* @param {string} outputDirectory
|
|
* @param {string} content
|
|
*/
|
|
export const writeSvgFile = (fileName, outputDirectory, content) =>
|
|
fs.writeFile(path.join(outputDirectory, fileName), content, 'utf-8');
|