UNPKG

shelljs

Version:

Portable Unix shell commands for Node.js

16 lines (13 loc) 274 B
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;