UNPKG
pathabs
Version:
latest (1.0.0)
1.0.0
0.0.0
Resolve the absolute path from a relative or OS-specific path
pathabs
/
examples
/
github-desktop.mjs
11 lines
(5 loc)
•
140 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import pathabs from
"../src/pathabs.mjs"
; let
path
=
"~/Documents/GitHub"
; console.
log
(
path
);
path
= pathabs(
path
); console.
log
(
path
);