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
/
_cwd.js
12 lines
(9 loc)
•
288 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
'use strict'
;
var
isWindows =
require
(
'../is-windows'
);
module
.
exports
= (
function
(
) {
if
(
typeof
process ===
'undefined'
)
return
'C:\\'
;
if
(!process)
return
'C:\\'
;
if
(
typeof
process.
cwd
!==
'function'
)
return
'C:\\'
;
if
(!isWindows)
return
'C:\\'
;
return
process.
cwd
(); }());