Package Exports
- @httptoolkit/osx-find-executable
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@httptoolkit/osx-find-executable) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
osx-find-executable
Part of HTTP Toolkit: powerful tools for building, testing & debugging HTTP(S)
Find an app's executable by its bundle id.
This is a fork of https://github.com/juliangruber/osx-find-executable, which appears unmaintained.
The key difference: this version includes a fallback (manually searching the apps in /Applications) if Spotlight is disabled, instead of just claiming that all apps can't be found.
Usage
const find = require('osx-find-executable')
find('com.google.Chrome', (err, exec) => {
// => /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
})Installation
$ npm install @httptoolkit/osx-find-executableAPI
find(id, cb(err, exec))
License
MIT