$ npm install osx-find-executableFind an app's executable by its bundle id.
const find = require('osx-find-executable')
find('com.google.Chrome', (err, exec) => {
// => /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
})
$ npm install osx-find-executable
MIT