UNPKG
path2
Version:
latest (0.1.0)
0.1.0
Modular and extended version of `path` package
github.com/medikoo/path2
medikoo/path2
path2
/
windows
/
_normalize-unc-root.js
6 lines
(4 loc)
•
130 B
JavaScript
View Raw
1
2
3
4
5
6
'use strict'
;
module
.
exports
=
function
(
device
) {
return
'\\\\'
+ device.
replace
(
/^[\\\/]+/
,
''
).
replace
(
/[\\\/]+/g
,
'\\'
); };