13 lines
190 B
JavaScript
Raw Normal View History

2023-03-05 13:23:23 +01:00
'use strict';
const which = require("which")
function whichOrUndefined(executable) {
try {
return which.sync(executable)
} catch (error) {
}
}
module.exports = whichOrUndefined