GT2/GT2-Android/node_modules/home-dir/index.js

9 lines
258 B
JavaScript
Raw Normal View History

var path = require('path');
var exports = module.exports = function (subDir) {
var baseDir = process.env[(process.platform == 'win32') ? 'USERPROFILE' : 'HOME'];
return (subDir) ? path.join(baseDir, subDir) : baseDir;
};
exports.directory = exports();