| 1 |
'use strict'; |
| 2 |
|
| 3 |
var isWindows = require('../is-windows'); |
| 4 |
|
| 5 |
module.exports = (function () { |
| 6 |
if (isWindows) return '/'; |
| 7 |
if (typeof process === 'undefined') return '/'; |
| 8 |
if (!process) return '/'; |
| 9 |
if (typeof process.cwd !== 'function') return '/'; |
| 10 |
return process.cwd(); |
| 11 |
}()); |