Nessuna descrizione
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 527B

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. }