UNPKG
@lucide/helpers
Version:
latest (1.0.0)
1.0.0
A internal used package with helpers.
@lucide/helpers
/
src
/
getCurrentDirPath.mjs
11 lines
(9 loc)
•
253 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
path
from
'path'
;
import
{ fileURLToPath }
from
'url'
;
/** * Get the current directory path. * *
@param
{
string
}
currentPath
*
@returns
{
string
} */
export
const
getCurrentDirPath
= (
currentPath
) => path.
dirname
(
fileURLToPath
(currentPath));