UNPKG
shelljs
Version:
latest (0.10.0)
0.10.0
0.9.2
0.9.1
0.9.0
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.8
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.1
0.6.0
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.0
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.6-pre2
0.0.6-pre1
0.0.5
0.0.5-pre4
0.0.5-pre3
0.0.5-pre2
0.0.5-pre1
0.0.4
0.0.4-pre1
0.0.3
0.0.2
0.0.2-pre1
0.0.1
0.0.1-alpha1
Portable Unix shell commands for Node.js
github.com/shelljs/shelljs
shelljs/shelljs
shelljs
/
src
/
pwd.js
16 lines
(13 loc)
•
274 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var
path =
require
(
'path'
);
var
common =
require
(
'./common'
); common.
register
(
'pwd'
, _pwd, {
allowGlobbing
:
false
, });
//@
//@ ### pwd()
//@ Returns the current directory.
function
_pwd
(
) {
var
pwd = path.
resolve
(process.
cwd
());
return
pwd; }
module
.
exports
= _pwd;