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