tenebrous-dicebot/api/node_modules/webpack-cli/lib/utils/package-exists.js

10 lines
178 B
JavaScript
Raw Normal View History

function packageExists(packageName) {
try {
return require.resolve(packageName);
} catch (error) {
return false;
}
}
module.exports = packageExists;