16 lines
274 B
JavaScript
16 lines
274 B
JavaScript
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;
|