wishthis/node_modules/homedir-polyfill/index.js
2022-01-21 09:28:41 +01:00

9 lines
168 B
JavaScript

'use strict';
var os = require('os');
if (typeof os.homedir !== 'undefined') {
module.exports = os.homedir;
} else {
module.exports = require('./polyfill.js');
}