2016-10-10 03:43:44 +02:00
|
|
|
var freeGlobal = require('./_freeGlobal');
|
|
|
|
|
|
|
|
/** Detect free variable `exports`. */
|
|
|
|
var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
|
|
|
|
|
|
|
|
/** Detect free variable `module`. */
|
|
|
|
var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
|
|
|
|
|
|
|
|
/** Detect the popular CommonJS extension `module.exports`. */
|
|
|
|
var moduleExports = freeModule && freeModule.exports === freeExports;
|
|
|
|
|
|
|
|
/** Detect free variable `process` from Node.js. */
|
|
|
|
var freeProcess = moduleExports && freeGlobal.process;
|
|
|
|
|
|
|
|
/** Used to access faster Node.js helpers. */
|
|
|
|
var nodeUtil = (function() {
|
|
|
|
try {
|
2016-11-16 01:59:39 +01:00
|
|
|
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
2016-10-10 03:43:44 +02:00
|
|
|
} catch (e) {}
|
|
|
|
}());
|
|
|
|
|
|
|
|
module.exports = nodeUtil;
|