mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-17 14:28:25 +00:00
14 lines
369 B
JavaScript
14 lines
369 B
JavaScript
/* eslint-disable import/prefer-default-export */
|
|||
|
|
import fs from 'fs';
|
||
|
|
import path from 'path';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* append content to a file
|
||
|
|
*
|
||
|
|
* @param {string} content
|
||
|
|
* @param {string} fileName
|
||
|
|
* @param {string} outputDirectory
|
||
|
|
*/
|
||
|
|
export const appendFile = (content, fileName, outputDirectory) =>
|
||
|
|
fs.appendFileSync(path.join(outputDirectory, fileName), content, 'utf-8');
|