joyent/node — Issue #2305: Provide process.env.PWD (or equivalent) on Windows
Author: medikoo
Created: 2011-12-09 11:44:39+00:00
State: open

It'll be great to be able to know working directory path on Windows.

On *nix bases system we easily get it with `process.env.PWD` but on Windows I wasn't able to find it in any _process_ or _process.env_ properties.

It seems that the only way to get it is via:

```
require('child_process').exec('cd', function (err, PWD) {
// ...
})
```