JSPM

@httptoolkit/osx-find-executable

1.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 853
  • Score
    100M100P100Q109237F
  • License MIT

Find an app's executable by its bundle id

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-executable

API

find(id, cb(err, exec))

License

MIT