UNPKG
@lucide/helpers
Version:
latest (1.0.0)
1.0.0
A internal used package with helpers.
@lucide/helpers
/
src
/
readFile.mjs
11 lines
(9 loc)
•
252 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
fs
from
'fs'
;
import
path
from
'path'
;
/** * Reads the file contents. * *
@param
{
string
}
path
*
@returns
{
string
} The contents of a file */
export
const
readFile
= (
path
) => fs.
readFileSync
(path.
resolve
(__dirname,
'../'
, path),
'utf-8'
);