running-apps

1.0.2 • Public • Published

running-apps

Get running .app:s.

$ npm install running-apps

Usage

const getApps = require('running-apps')
 
getApps()
  .then(apps => console.log(apps))
  .catch(e => console.error(e))
 
// [
//   {
//     pid: 1234
//     comm: '/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal'
//     app: '/Applications/Utilities/Terminal.app'
//   },
//   ...
// ]

cli

npm install -g running-apps
running-apps
# [
#   {
#     "pid": "1234",
#     "comm": "/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal",
#     "app": "/Applications/Utilities/Terminal.app"
#   },
#   ...
# ]

Readme

Keywords

Package Sidebar

Install

npm i running-apps

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • rogerbf