All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.internals.try-node-require.js Maven / Gradle / Ivy

There is a newer version: 3.39.0
Show newest version
'use strict';
var IS_NODE = require('../internals/engine-is-node');

module.exports = function (name) {
  try {
    // eslint-disable-next-line no-new-func -- safe
    if (IS_NODE) return Function('return require("' + name + '")')();
  } catch (error) { /* empty */ }
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy