UNPKG
@react-gnome/core
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
## Getting Started
@react-gnome/core
/
dist
/
esm
/
get-dirpath
/
get-dirpath.mjs
11 lines
(10 loc)
•
265 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
// src/get-dirpath/get-dirpath.esm.ts
import
path
from
"path"
;
import
{ fileURLToPath }
from
"url"
;
var
getDirPath
= (
) => {
const
__dirname =
fileURLToPath
(
new
URL
(
"."
,
import
.
meta
.
url
));
return
path.
resolve
(__dirname,
"../../.."
); };
export
{ getDirPath };