site_opytex/theme/node_modules/homedir-polyfill/index.js

10 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');
}