UNPKG
@keplr-ewallet/stdlib-js
Version:
latest (0.0.2-rc.24)
0.0.2-rc.24
0.0.2-rc.23
0.0.2-rc.22
0.0.2-rc.21
0.0.2-rc.20
0.0.2-rc.19
0.0.2-rc.18
0.0.2-rc.17
0.0.2-rc.16
0.0.2-rc.15
0.0.2-rc.14
0.0.2-rc.13
0.0.2-rc.12
0.0.2-rc.11
0.0.2-rc.10
0.0.2-rc.9
0.0.2-rc.8
0.0.2-rc.6
0.0.2-rc.5
0.0.2-rc.4
0.0.2-rc.3
0.0.2-rc.2
0.0.2-rc.1
0.0.2-rc.0
chainapsis/ewallet
@keplr-ewallet/stdlib-js
/
dist
/
path.js
6 lines
•
179 B
JavaScript
View Raw
1
2
3
4
5
6
import
os
from
"node:os"
;
export
function
replaceTildeWithHome
(
path
) {
const
homeDir = os.
homedir
();
return
path.
replace
(
/^~/
, homeDir); }
//# sourceMappingURL=path.js.map