import * as pify from 'pify' ; import * as whichLib from 'which' ; const pwhich = pify ( whichLib ) ; param program export async function which ( program ) { const path = await pwhich ( program ) ; return path ; }