UNPKG
@flex-development/pathe
Version:
latest (4.0.2)
4.0.2
4.0.1
4.0.0
3.0.0
2.0.0
1.0.3
1.0.2
1.0.1
1.0.0
Universal drop-in replacement for node:path
github.com/flex-development/pathe
flex-development/pathe
@flex-development/pathe
/
dist
/
internal
/
constants.mjs
12 lines
(11 loc)
•
293 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
process
from
"#internal/process"
;
const
DRIVE_PATH_REGEX
=
/^(?<drive>(?<letter>[a-z]):(?:\/|\\{2})?)/i
;
const
delimiterWindows =
";"
;
const
isWindows = process.
platform
===
"win32"
;
const
sepWindows =
"\\"
;
export
{
DRIVE_PATH_REGEX
, delimiterWindows, isWindows, sepWindows };