UNPKG

path2

Version:

Modular and extended version of `path` package

12 lines (9 loc) 288 B
'use strict'; var isWindows = require('../is-windows'); module.exports = (function () { if (typeof process === 'undefined') return 'C:\\'; if (!process) return 'C:\\'; if (typeof process.cwd !== 'function') return 'C:\\'; if (!isWindows) return 'C:\\'; return process.cwd(); }());