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