shelljs
Version:
Portable Unix shell commands for Node.js
17 lines (14 loc) • 314 B
JavaScript
var path = require('path');
var common = require('./common');
common.register('pwd', _pwd, {
allowGlobbing: false,
});
//@
//@ ### pwd()
//@
//@ Returns the current directory as a [ShellString](#shellstringstr).
function _pwd() {
var pwd = path.resolve(process.cwd());
return pwd;
}
module.exports = _pwd;