UNPKG
@lucide/helpers
Version:
latest (1.0.0)
1.0.0
A internal used package with helpers.
@lucide/helpers
/
src
/
resetFile.mjs
12 lines
(10 loc)
•
277 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
fs
from
'fs'
;
import
path
from
'path'
;
/** * Resets the file contents. * *
@param
{
string
}
fileName
*
@param
{
string
}
outputDirectory
*/
export
const
resetFile
= (
fileName, outputDirectory
) => fs.
writeFileSync
(path.
join
(outputDirectory, fileName),
''
,
'utf-8'
);