diff options
Diffstat (limited to 'node_modules/shelljs/src/pwd.js')
-rw-r--r-- | node_modules/shelljs/src/pwd.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/shelljs/src/pwd.js b/node_modules/shelljs/src/pwd.js new file mode 100644 index 000000000..38618518b --- /dev/null +++ b/node_modules/shelljs/src/pwd.js @@ -0,0 +1,15 @@ +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; |