暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617
  1. "use strict";
  2. module.exports = inquire;
  3. /**
  4. * Requires a module only if available.
  5. * @memberof util
  6. * @param {string} moduleName Module to require
  7. * @returns {?Object} Required module if available and not empty, otherwise `null`
  8. */
  9. function inquire(moduleName) {
  10. try {
  11. var mod = eval("quire".replace(/^/,"re"))(moduleName); // eslint-disable-line no-eval
  12. if (mod && (mod.length || Object.keys(mod).length))
  13. return mod;
  14. } catch (e) {} // eslint-disable-line no-empty
  15. return null;
  16. }