UNPKG

path2

Version:

Modular and extended version of `path` package

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